Java 类io.reactivex.internal.fuseable.SimpleQueue 实例源码

项目:RxJava2Extensions    文件:BasicMergeSubscription.java   
void clearSources() {
    Arrays.fill(latest, this);
    for (InnerQueuedSubscriber<T> d : subscribers) {
        SimpleQueue<T> q = d.queue();
        if (q != null) {
            q.clear();
        }
    }
}
项目:RxJava2Extensions    文件:BasicMergeSubscription.java   
void cancelAndClearSources() {
    Arrays.fill(latest, this);
    for (InnerQueuedSubscriber<T> d : subscribers) {
        d.cancel();
        SimpleQueue<T> q = d.queue();
        if (q != null) {
            q.clear();
        }
    }
}
项目:RxJava2Extensions    文件:FlowableFlatMapAsync.java   
@Override
public void innerNext(FlatMapInnerSubscriber<T, R> inner, R item) {
    SimpleQueue<R> q = inner.queue();
    q.offer(item);
    drain();
}