Promise

zio.Promise
See thePromise companion class
object Promise

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Promise.type

Members list

Type members

Classlikes

object unsafe

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Value members

Concrete methods

def make[E, A](implicit trace: Trace): UIO[Promise[E, A]]

Makes a new promise to be completed by the fiber creating the promise.

Makes a new promise to be completed by the fiber creating the promise.

Attributes

def makeAs[E, A](fiberId: => FiberId)(implicit trace: Trace): UIO[Promise[E, A]]

Makes a new promise to be completed by the fiber with the specified id.

Makes a new promise to be completed by the fiber with the specified id.

Attributes