Complete the stream normally.
Complete the stream normally. Use watchCompletion
to be notified of this
operation’s success.
Complete the stream with a failure.
Complete the stream with a failure. Use watchCompletion
to be notified of this
operation’s success.
Method offers next element to a stream and returns future that:
- completes with Enqueued
if element is consumed by a stream
- completes with Dropped
when stream dropped offered element
- completes with QueueClosed
when stream is completed during future is active
- completes with Failure(f)
when failure to enqueue element from upstream
- fails when stream is completed
Method offers next element to a stream and returns future that:
- completes with Enqueued
if element is consumed by a stream
- completes with Dropped
when stream dropped offered element
- completes with QueueClosed
when stream is completed during future is active
- completes with Failure(f)
when failure to enqueue element from upstream
- fails when stream is completed
Additionally when using the backpressure overflowStrategy: - If the buffer is full the Future won't be completed until there is space in the buffer - Calling offer before the Future is completed in this case will return a failed Future
element to send to a stream
Method returns a Future that will be completed if the stream completes, or will be failed when the operator faces an internal failure or the the SourceQueueWithComplete.fail method is invoked.
Method returns a Future that will be completed if the stream completes, or will be failed when the operator faces an internal failure or the the SourceQueueWithComplete.fail method is invoked.
This trait adds completion support to SourceQueue.