ZManagedTSemaphoreSyntax

zio.managed.`package`.ZManagedTSemaphoreSyntax
final implicit class ZManagedTSemaphoreSyntax(self: TSemaphore) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

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.

Attributes

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.

Attributes