* Runs an effect only if the specified number of permits are immediately * available. * * **When to use** * * Use when guarded work should run only if the requested permits are * immediately available. * * **Details** * * This function attempts to acquire the specified
(
this: Semaphore,
permits: number
)
| 115 | * the result is `Option.none`. |
| 116 | */ |
| 117 | withPermitsIfAvailable( |
| 118 | this: Semaphore, |
| 119 | permits: number |
| 120 | ): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<Option.Option<A>, E, R> |
no outgoing calls
no test coverage detected