fs2.concurrent
package fs2.concurrent
Type members
Classlikes
object Balance
Provides mechanisms for balancing the distribution of chunks across multiple streams.
Pure holder of a single value of type
and updated in the effect
A
that can be both readand updated in the effect
F
.The update methods have the same semantics as Ref, as well as
propagating changes to
in case of very fast updates).
propagating changes to
discrete
(with a last-update-wins policyin case of very fast updates).
The
function, in the presence of
need looping even without any other writers.
access
method differs slightly from Ref
in that the updatefunction, in the presence of
discrete
, can return false
andneed looping even without any other writers.
- Companion
- object
Topic allows you to distribute
number of publishers to an arbitrary number of subscribers.
A
s published by an arbitrarynumber of publishers to an arbitrary number of subscribers.
Topic has built-in back-pressure support implemented as the maximum
number of elements (
number of elements (
maxQueued
) that a subscriber is allowed to enqueue.Once that bound is hit, any publishing action will semantically
block until the lagging subscriber consumes some of its queued
elements.
block until the lagging subscriber consumes some of its queued
elements.
- Companion
- object