Promise

object Promise
Source
__.scala
class java.lang.Object
trait scala.Matchable
class Any

Member

opaque type Context

Promise context is an opaque type backed by scala.concurrent.ExecutionContext, esentially they are the same thing

Thus value promise uses Scala concurrency framework for execution

Source
Context.scala
trait Control[A]

Promise control provides the ability to "complete" the controlled promise instance.

For each promise, there is a control, which is not part of promise API, it is a behind the scenes handle for code fulfilling the promise.

Source
Control.scala
trait Control[A]

Promise control provides the ability to "complete" the controlled promise instance.

For each promise, there is a control, which is not part of promise API, it is a behind the scenes handle for code fulfilling the promise.

Source
Control.scala

Def

def apply[A](calc: => A)(using c: Promise.Context): Promise[A]
Source
__.scala
def ready[A](v: A | Result.Problem): Promise[A]
Source
__.scala
def unapply[A](v: Promise[A]): scala.Option[A]
Source
__.scala