ZManagedTSemaphoreSyntax

final implicit class ZManagedTSemaphoreSyntax(self: TSemaphore) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def withPermitManaged(implicit trace: Trace): ZManaged[Any, Nothing, Unit]

Returns a managed effect that describes acquiring a permit as the acquire action and releasing it as the release action.

Returns a managed effect that describes acquiring a permit as the acquire action and releasing it as the release action.

def withPermitsManaged(n: Long)(implicit trace: Trace): ZManaged[Any, Nothing, Unit]

Returns a managed effect that describes acquiring the specified number of permits as the acquire action and releasing them as the release action.

Returns a managed effect that describes acquiring the specified number of permits as the acquire action and releasing them as the release action.