Permit
A granted unit of budget. Charged at the grant, so a permit never completed is simply spent: the budget holds no lock or lease for it. Not AutoCloseable: its completion is suspend.
Experimental (implement). Implementing needs @OptIn(ExperimentalForInheritanceWebToolsApi::class); calling complete and release is Stable Core. complete means the request was sent; release means it never was and refunds the units. Both are idempotent, run under NonCancellable (so they take effect from a cancelled coroutine), and a complete after a release, or the reverse, is ignored.
Properties
Functions
complete with RateSignals.None: the request was sent and nothing is known about the answer.
The request was sent and signals were read from its answer: reconcile counts and pause on a throttle.