Lease
interface Lease
A held concurrency-limiter slot.
A lease is acquired from a funnel limiter and held by the caller across operations, coroutines, or requests until it is explicitly released or its releaseAfter TTL reclaims it after a crash. Leases that support TTL extension implement RefreshableLease.
Methods
bool
release()
Release the held slot if still owned by this lease.
string
owner()
Get the owner identifier of this lease.
Details
at line 20
bool
release()
Release the held slot if still owned by this lease.
at line 25
string
owner()
Get the owner identifier of this lease.