issues
search
xinbaihui
/
Blog
web front end
1
stars
0
forks
source link
【Rxjs三】Subject
#46
Open
xinbaihui
opened
3 years ago
xinbaihui
commented
3 years ago
Subject, BehaviorSubject, ReplaySubject, AsyncSubject 实现原理:
https://juejin.cn/post/6985348097064828942#heading-8
Subject的构造函数没有参数,不会立刻执行onSubscribe(产生数据并传给subscriber), 而是订阅某个Observable或者自己产生数据,统一传递给subscriber,因此能实现组播(数据源只有一个)