IOLocal

cats.effect.IOLocal$
See theIOLocal companion trait
object IOLocal

Attributes

Companion
trait
Source
IOLocal.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
IOLocal.type

Members list

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

Attributes

Source
IOLocal.scala