Extend the TTL of an existing lock
Lock handle from acquire()
Promise resolving to true if extended, false if lock expired
Check if a lock is currently held
Lock key to check
Promise resolving to true if locked, false otherwise
Release a previously acquired lock
Lock handle from acquire()
Promise resolving to true if released, false if already expired
Execute a routine with automatic lock management and extension Auto-extends when remaining TTL < 20% (extends at ~80% consumed) Provides AbortSignal when extension fails
Function to execute while holding the lock
Result of the routine
Lean SimpleLock - Optimized for memory efficiency
Memory optimizations: