Fork

ox.Fork
See theFork companion object
trait Fork[T]

A fork started using fork, forkError, forkUser, forkUserError, forkCancellable or forkUnsupervised, backed by a (virtual) thread.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait CancellableFork[T]

Members list

Value members

Abstract methods

def join(): T

Blocks until the fork completes with a result. Throws an exception, if the fork completed with an exception, and is unsupervised.

Blocks until the fork completes with a result. Throws an exception, if the fork completed with an exception, and is unsupervised.

Attributes

See also

If T is an Either, and there's an enclosing either block, the result can be unwrapped using either.ok.

Concrete methods

def joinEither(): Either[Throwable, T]

Blocks until the fork completes with a result. Only makes sens in unsupervised scoped: otherwise a thrown exception causes the scope to end, and is re-thrown by the supervised block.

Blocks until the fork completes with a result. Only makes sens in unsupervised scoped: otherwise a thrown exception causes the scope to end, and is re-thrown by the supervised block.

Attributes