UnsupervisedFork

ox.UnsupervisedFork
See theUnsupervisedFork companion object
trait UnsupervisedFork[T] extends Fork[T]

Attributes

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

Members list

Value members

Concrete methods

def joinEither(): Either[Throwable, T]

Blocks until the fork completes with a result. If the fork failed with an exception, this exception is not thrown, but returned as a Left.

Blocks until the fork completes with a result. If the fork failed with an exception, this exception is not thrown, but returned as a Left.

Attributes

Throws
InterruptedException

If the join is interrupted.

Inherited methods

def join(): T

Blocks until the fork completes with a result.

Blocks until the fork completes with a result.

Attributes

Throws
Throwable

If the fork completed with an exception, and is unsupervised (started with forkUnsupervised or forkCancellable.

See also

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

Inherited from:
Fork