BlockContext

scala.concurrent.BlockContext$
See theBlockContext companion trait
object BlockContext

Attributes

Companion
trait
Source
BlockContext.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

final def current: BlockContext

Attributes

Returns

the BlockContext that would be used for the current java.lang.Thread at this point

Source
BlockContext.scala

The default block context will execute the supplied thunk immediately.

The default block context will execute the supplied thunk immediately.

Attributes

Returns

the BlockContext that will be used if no other is found.

Source
BlockContext.scala
final def usingBlockContext[I, T](blockContext: BlockContext)(f: BlockContext => T): T

Installs the BlockContext blockContext around the invocation to f and passes in the previously installed BlockContext to f.

Installs the BlockContext blockContext around the invocation to f and passes in the previously installed BlockContext to f.

Attributes

Returns

the value produced by applying f

Source
BlockContext.scala
final def withBlockContext[T](blockContext: BlockContext)(body: => T): T

Installs a current BlockContext around executing body.

Installs a current BlockContext around executing body.

Attributes

Source
BlockContext.scala