Semaphore

cats.effect.std.Semaphore
See theSemaphore companion class
object Semaphore

Attributes

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

Members list

Value members

Concrete methods

def apply[F[_]](n: Long)(implicit F: GenConcurrent[F, _]): F[Semaphore[F]]

Creates a new Semaphore, initialized with n available permits.

Creates a new Semaphore, initialized with n available permits.

Attributes

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

Creates a new Semaphore, initialized with n available permits.

Creates a new Semaphore, initialized with n available permits. like apply but initializes state using another effect constructor

Attributes

Source
Semaphore.scala