Scope

lamp.Scope
See theScope companion class
object Scope

Attributes

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

Members list

Value members

Concrete methods

def apply[A : Movable](op: Scope => A)(implicit evidence$4: Movable[A], parent: Scope): A

Create new Scope bound to an anonymous function.

Create new Scope bound to an anonymous function.

Will release when the function returns. Return values of the function are moved to the parent scope. Return values must conform to the lamp.Movable type class.

Attributes

def bracket[A : Movable](use: Scope => IO[A])(implicit evidence$2: Movable[A], parent: Scope): IO[A]

Create new Scope bound to a cats-effect IO.

Create new Scope bound to a cats-effect IO.

Will release when the IO finishes. Return values of the IO are moved to the parent scope.

Attributes

def bracket[A : Movable](parent: Scope)(use: Scope => IO[A]): IO[A]

Create new Scope bound to a cats-effect IO.

Create new Scope bound to a cats-effect IO.

Will release when the IO finishes. Return values of the IO are moved to the parent scope.

Attributes

def free: Scope

Create new free standing Scope, not bound to any lexical scope.

Create new free standing Scope, not bound to any lexical scope.

Attributes

def inResource: Resource[IO, Scope]

Create new Scope bound to a cats-effect Resource.

Create new Scope bound to a cats-effect Resource.

Will release when the cats-effect Resource cleans up.

Attributes

def root[A : EmptyMovable](use: Scope => IO[A]): IO[A]
def root[A : EmptyMovable](op: Scope => A): A

Create new Scope bound to an anonymous function. Returns nothing.

Create new Scope bound to an anonymous function. Returns nothing.

Will release when the function returns.

Attributes

def unsafe[A](op: Scope => A): A

Create new Scope bound to an anonymous function. May leak resources.

Create new Scope bound to an anonymous function. May leak resources.

Will release when the function returns. Return values are not moved to any parent scope.

Attributes