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

Concise view

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.

Attributes

A

the type of the local value

default

the default value

Source:
IOLocal.scala