TSemaphore

zio.stm.TSemaphore
See theTSemaphore companion class
object TSemaphore

Attributes

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

Members list

Type members

Classlikes

object unsafe

Attributes

Source
TSemaphore.scala
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

Source
TSemaphore.scala
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

Source
TSemaphore.scala