Deferred
object Deferred
- Companion
- class
class Object
trait Matchable
class Any
Value members
Methods
Like
instead of wrapping it in
unsafe because it is not referentially transparent -- it
allocates mutable state.
apply
but returns the newly allocated promise directlyinstead of wrapping it in
F.delay
. This method is consideredunsafe because it is not referentially transparent -- it
allocates mutable state.
WARN: some
making
for optimization purposes, in cases where the use case does not
require cancellation or in cases in which an
that does not support cancellation is used.
Async
data types, like IO, can be cancelable,making
uncancelable
values unsafe. Such values are only usefulfor optimization purposes, in cases where the use case does not
require cancellation or in cases in which an
F[_]
data typethat does not support cancellation is used.
def in[F <: ([_$8] =>> Any), G <: ([_$9] =>> Any), A](F: Sync[F], G: Concurrent[G]): F[Deferred[G, A]]
Like apply but initializes state using another effect constructor
def uncancelableIn[F <: ([_$10] =>> Any), G <: ([_$11] =>> Any), A](F: Sync[F], G: Async[G]): F[Deferred[G, A]]
Like uncancelable but initializes state using another effect constructor
Creates an unset tryable promise that only requires an Async and
does not support cancellation of
does not support cancellation of
get
.Like uncancelable but returns the newly allocated promise directly
instead of wrapping it in
unsafe because it is not referentially transparent -- it
allocates mutable state.
instead of wrapping it in
F.delay
. This method is consideredunsafe because it is not referentially transparent -- it
allocates mutable state.
WARN: read the caveats of uncancelable.