acquire

open suspend fun acquire()

Suspends the coroutine until a single permit was acquired.

Since

0.4.0


abstract fun acquire(permits: Int): Flow<Int>

Returns a flow that emits the number of granted permits in intervals until all requested permits have been granted.

Since

0.4.0