Mutex

object Mutex
Companion:
class
Source:
Mutex.scala
class Object
trait Matchable
class Any
Mutex.type

Value members

Concrete methods

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

Creates a new Mutex.

Creates a new Mutex.

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.

Source:
Mutex.scala