arrow-fx / arrow.fx / Enqueue / offer
abstract fun offer(a: A): Kind<F,
Unit
>
Offers a value to the Queue, and behaves differently depending on the Queue.BackpressureStrategy.
Semantically blocks until room available in Queue, check Queue.bounded for an example.
Returns immediately and slides values through the Queue, check Queue.sliding for an example.
Returns immediately and drops values from the Queue, check Queue.dropping for an example.
Returns immediately and always offers to the Queue, check Queue.unbounded for an example.
See Also
Do you like Arrow?
✖