I’m refering to this documentation - Source
Here under, the definition for Source, it says
“You can push elements to the queue and they will be emitted to the stream if there is demand from downstream”
I have created a source like this -
Source<Object, SourceQueueWithComplete<Object>> sourceQueue = Source.queue(4, OverflowStrategy.backpressure(), 4)
However, I am unsure of how to push elements to this queue, I don’t see an offer
method for Source<Object, SourceQueueWithComplete<Object>>
but there is an offer
method for SourceQueueWithComplete
, how can I access this SourceQueueWithComplete<Object>
?
1 post - 1 participant