Warp

turbolift.io.Warp
See theWarp companion trait
object Warp

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Warp.type

Members list

Type members

Classlikes

final class NamedCompanionSyntax(name: String)

Attributes

Supertypes
class Object
trait Matchable
class Any
final class NamedSyntax(warp: Warp, name: String)

Attributes

Supertypes
class Object
trait Matchable
class Any
enum Status

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[A, U <: IO](body: Computation[A, U & Warp]): Computation[A, U]

Creates a new scoped warp, encompassing given computation.

Creates a new scoped warp, encompassing given computation.

Attributes

The innermost scoped warp.

The innermost scoped warp.

Attributes

The outermost scoped warp.

The outermost scoped warp.

Attributes

def named(name: String): NamedCompanionSyntax

Syntax for creating new child warp with a name.

Syntax for creating new child warp with a name.

Attributes

def root: Warp

The global warp.

The global warp.

The parent of every initial warp. There can be multiple initial warps (each with corresponding initial fiber), due to reentrancy of .run.

Attributes

Creates an unscoped warp.

Creates an unscoped warp.

Attributes

def use[A, U <: IO](fun: Warp => Computation[A, U & Warp]): Computation[A, U]

Like apply, but also passes newly created warp to given computation.

Like apply, but also passes newly created warp to given computation.

Attributes