IOLocal

object IOLocal
Companion:
class
class Object
trait Matchable
class Any
IOLocal.type

Value members

Concrete methods

def apply[A](default: A): IO[IOLocal[A]]

Creates a new instance of IOLocal with the given default value.

Creates a new instance of IOLocal with the given default value.

The creation is effectful, because IOLocal models mutable state, and allocating mutable state is not pure.

Type parameters:
A

the type of the local value

Value parameters:
default

the default value