arrow-fx-coroutines / arrow.fx.coroutines / Semaphore / withPermit

withPermit

open suspend fun <A> withPermit(fa: suspend () -> A): A

Returns an effect that acquires a permit, runs the supplied effect, and then releases the permit.

Do you like Arrow?

Arrow Org
<