TSemaphore

object TSemaphore
Companion:
class
class Object
trait Matchable
class Any

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.

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.