Mutex

cats.effect.std.Mutex$
See theMutex companion class
object Mutex

Attributes

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

Members list

Concise view

Value members

Concrete methods

def apply[F[_]](implicit F: GenConcurrent[F, _]): F[Mutex[F]]

Creates a new Mutex.

Creates a new Mutex.

Attributes

Source:
Mutex.scala
def in[F[_], G[_]](implicit F: Sync[F], G: Async[G]): F[Mutex[G]]

Creates a new Mutex. Like apply but initializes state using another effect constructor.

Creates a new Mutex. Like apply but initializes state using another effect constructor.

Attributes

Source:
Mutex.scala