DeferredSink

cats.effect.kernel.DeferredSink
See theDeferredSink companion object
trait DeferredSink[F[_], A] extends Serializable

Attributes

Companion:
object
Source:
Deferred.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class Deferred[F, A]
class AsyncDeferred[F, A]

Members list

Concise view

Value members

Abstract methods

def complete(a: A): F[Boolean]

If this Deferred is empty, sets the current value to a, and notifies any and all readers currently blocked on a get. Returns true.

If this Deferred is empty, sets the current value to a, and notifies any and all readers currently blocked on a get. Returns true.

If this Deferred has already been completed, returns false.

Satisfies: Deferred[F, A].flatMap(r => r.complete(a) *> r.get) == a.pure[F]

Attributes

Source:
Deferred.scala