Deferred

object Deferred
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final class AsyncDeferred[F <: ([_$7] =>> Any), A](F: Async[F]) extends Deferred[F, A]

Value members

Methods

def apply[F <: ([_$3] =>> Any), A](F: GenConcurrent[F, ]): F[Deferred[F, A]]
Creates an unset Deferred.
Every time you bind the resulting F, a new Deferred is created.
If you want to share one, pass it as an argument and flatMap
once.
def unsafe[F <: ([_$4] =>> Any), A](evidence$1: Async[F]): Deferred[F, A]
Like apply but returns the newly allocated Deferred directly
instead of wrapping it in F.delay. This method is considered
unsafe because it is not referentially transparent -- it
allocates mutable state.
In general, you should prefer apply and use flatMap to get state sharing.
def in[F <: ([_$5] =>> Any), G <: ([_$6] =>> Any), A](F: Sync[F], G: Async[G]): F[Deferred[G, A]]
Like apply but initializes state using another effect constructor