CancellableFork

ox.CancellableFork
trait CancellableFork[T] extends Fork[T]

A fork started using forkCancellable, backed by a (virtual) thread.

Attributes

Graph
Supertypes
trait Fork[T]
class Object
trait Matchable
class Any

Members list

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 cancelNow(): Unit

Interrupts the fork, and returns immediately, without waiting for the fork to complete. Note that the enclosing scope will only complete once all forks have completed.

Interrupts the fork, and returns immediately, without waiting for the fork to complete. Note that the enclosing scope will only complete once all forks have completed.

Attributes

Inherited methods

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

Inherited from:
Fork
def joinEither(): Either[Throwable, T]

Blocks until the fork completes with a result.

Blocks until the fork completes with a result.

Attributes

Inherited from:
Fork