Warp

turbolift.io.Warp
See theWarp companion object
sealed trait Warp

Collection of fibers (and/or other warps). Ensures lifetime boundary of its children.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def name: String
def outer: Option[Warp]

For scoped warp only: the nearest scoped warp enclosing this one.

For scoped warp only: the nearest scoped warp enclosing this one.

Attributes

def parent: Option[Warp | Untyped]

The parent of this warp.

The parent of this warp.

  • For scoped warp: the Fiber in which this warp was created.
  • For unscoped warp: the Warp in which this warp was created.
  • For the root warp: None.

Attributes

def unsafeCancelAndForget(): Unit
def unsafeChildren(): Iterable[Untyped | Warp]
def unsafeFibers(): Iterable[Untyped]
def unsafeSpawn(name: String): Warp
def unsafeWarps(): Iterable[Warp]

Concrete methods

final def await: Computation[Unit, IO]

Complete this warp, by waiting until it becomes childless.

Complete this warp, by waiting until it becomes childless.

Attributes

final def cancel: Computation[Unit, IO]

Complete this warp, by cancelling all its children and waiting for their completion.

Complete this warp, by cancelling all its children and waiting for their completion.

Attributes

final def cancelAndForget: Computation[Unit, IO]

Like cancel, but without waiting for the completion.

Like cancel, but without waiting for the completion.

Attributes

final def children: Computation[Iterable[Untyped | Warp], IO]

Snapshot of this warp's elements.

Snapshot of this warp's elements.

Attributes

final def fibers: Computation[Iterable[Untyped], IO]

Like children, but filtered to return fibers only.

Like children, but filtered to return fibers only.

Attributes

final def fork[A, U](comp: Computation[A, U]): Computation[Fiber[A, U], U & IO]

Create a child Fiber.

Create a child Fiber.

Attributes

final def fork[A, U](name: String)(comp: Computation[A, U]): Computation[Fiber[A, U], U & IO]

Create a child Fiber.

Create a child Fiber.

Attributes

final def loom[A, U <: IO]: Computation[Loom[A, U], IO]

Create a Loom with this warp as a parent.

Create a Loom with this warp as a parent.

Attributes

final def loom[A, U <: IO](name: String): Computation[Loom[A, U], IO]

Create a Loom with this warp as a parent.

Create a Loom with this warp as a parent.

Attributes

final def shutdownAndForget: Computation[Unit, IO]

Trigger completion of this warp as soon it becomes childless.

Trigger completion of this warp as soon it becomes childless.

Like await, but without waiting for the completion.

Attributes

final def spawn: Computation[Warp, IO]

Create a child Warp.

Create a child Warp.

Attributes

final def spawn(name: String): Computation[Warp, IO]

Create a child Warp.

Create a child Warp.

Attributes

final def status: Computation[Status, IO]

Snapshot of this warp's Status.

Snapshot of this warp's Status.

Attributes

final def warps: Computation[Iterable[Warp], IO]

Like children, but filtered to return warps only.

Like children, but filtered to return warps only.

Attributes