TSemaphore

zio.stm.TSemaphore
See theTSemaphore companion class
object TSemaphore

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TSemaphore.type

Members list

Type members

Classlikes

object unsafe

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
unsafe.type

Value members

Concrete methods

def make(permits: => Long)(implicit trace: Trace): USTM[TSemaphore]

Constructs a new TSemaphore with the specified number of permits.

Constructs a new TSemaphore with the specified number of permits.

Attributes

def makeCommit(permits: => Long)(implicit trace: Trace): UIO[TSemaphore]

Constructs a new TSemaphore with the specified number of permits, immediately committing the transaction.

Constructs a new TSemaphore with the specified number of permits, immediately committing the transaction.

Attributes