Fork

ox.Ox$.Fork
trait Fork[T]

A running fork, started using Ox.fork or Ox.forkHold, backend by a thread.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def cancel(): Either[Throwable, T]

Interrupts the fork, and blocks until it completes with a result.

Interrupts the fork, and blocks until it completes with a result.

Attributes

def join(): T

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

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

Attributes

Concrete methods

def joinEither(): Either[Throwable, T]

Blocks until the fork completes with a result.

Blocks until the fork completes with a result.

Attributes