Promise.Context

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

Def

inline def execute(r: java.lang.Runnable): Unit

Execute runnable

Execute runnable

Runs scala.concurrent.ExecutionContext.execute

Source
Context.scala
inline def real: scala.concurrent.ExecutionContext

Get implementation

Get implementation

Returns scala.concurrent.ExecutionContext

Source
Context.scala
inline def reportFailure(cause: scala.Throwable): Unit

Handle failure

Handle failure

Runs scala.concurrent.ExecutionContext.reportFailure

Source
Context.scala