Like get
, but returns a Task[Unit]
that can be used cancel the subscription.
Return the most recently completed set
, or block until a set
value is available.
Return a Task
that submits t
to this ref for evaluation.
Return a Task
that submits t
to this ref for evaluation.
When it completes it overwrites any previously put
value.
Runs t1
and t2
simultaneously, but only the winner gets to
set
to this ref
.
Runs t1
and t2
simultaneously, but only the winner gets to
set
to this ref
. The loser continues running but its reference
to this ref is severed, allowing this ref to be garbage collected
if it is no longer referenced by anyone other than the loser.