Skip to main content
Defined in: coordination/lease.ts:60 In-process LeaseProvider, the reference implementation of the contract. Only useful within one process (tests, or several schedulers sharing it).

Implements

Constructors

Constructor

Defined in: coordination/lease.ts:64

Parameters

Returns

MemoryLeaseProvider

Methods

acquire()

Defined in: coordination/lease.ts:68

Parameters

Returns

Promise<LeaseGrant | null>

Implementation of

LeaseProvider.acquire

renew()

Defined in: coordination/lease.ts:82

Parameters

Returns

Promise<boolean>

Implementation of

LeaseProvider.renew

release()

Defined in: coordination/lease.ts:91

Parameters

Returns

Promise<void>

Implementation of

LeaseProvider.release