acquire

abstract suspend fun acquire(cost: Int)

Acquire a "permit" to conduct a transaction. If not enough permits are available, this method may delay.

Parameters

cost

The relative cost of the transaction. Some transactions may take more work or represent a bundle of smaller transactions.