internal BufferBoundarySubscriber(IFlowableSubscriber <C> actual, C buffer, Func <C> bufferSupplier)
 {
     this.actual         = actual;
     this.buffer         = buffer;
     this.bufferSupplier = bufferSupplier;
     this.boundary       = new BoundarySubscriber(this);
     this.queue          = new SpscLinkedArrayQueue <C>(16);
 }
Exemple #2
0
 internal WindowBoundarySubscriber(IFlowableSubscriber <IFlowable <T> > actual, int bufferSize)
 {
     this.actual     = actual;
     this.active     = 1;
     this.queue      = new SpscLinkedArrayQueue <IFlowable <T> >(16);
     this.terminate  = OnTerminate;
     this.bufferSize = bufferSize;
     this.buffer     = new UnicastProcessor <T>(bufferSize, terminate);
     this.boundary   = new BoundarySubscriber(this);
     queue.Offer(buffer);
 }