Scoped

trait Scoped[F[_], A]

Thread a value through IO using IOLocal

Type parameters:
A

The value being threaded

F

The outer effect

Companion:
object
Source:
Scoped.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

def get: F[A]

Get the value from the IOLocal

Get the value from the IOLocal

Returns:

the value

Source:
Scoped.scala
def scope(value: A): Resource[F, Unit]

Branch/Fork the current F using a new value for the IOLocal

Branch/Fork the current F using a new value for the IOLocal

Value parameters:
value

new value to use

Returns:

a resource where the new value is contained

Source:
Scoped.scala