fs2.concurrent
Provides several concurrency primitives. *
Type members
Classlikes
Stream aware, multiple producer, single consumer closeable channel.
Stream aware, multiple producer, single consumer closeable channel.
- Companion:
- object
- Source:
- Channel.scala
Pure holder of a single value of type A
that can be read in the effect F
.
Pure holder of a single value of type A
that can be read in the effect F
.
- Companion:
- object
- Source:
- Signal.scala
Pure holder of a single value of type A
that can be both read
and updated in the effect F
.
Pure holder of a single value of type A
that can be both read
and updated in the effect F
.
The update methods have the same semantics as Ref, as well as
propagating changes to discrete
(with a last-update-wins policy
in case of very fast updates).
The access
method differs slightly from Ref
in that the update
function, in the presence of discrete
, can return false
and
need looping even without any other writers.
- Companion:
- object
- Source:
- Signal.scala
Topic allows you to distribute A
s published by an arbitrary
number of publishers to an arbitrary number of subscribers.
Topic allows you to distribute A
s published by an arbitrary
number of publishers to an arbitrary number of subscribers.
Topic has built-in back-pressure support implemented as the maximum
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.
- Companion:
- object
- Source:
- Topic.scala