NoLock class

Implements no lock to be used with multi-listener approach

Signature:

export declare class NoLock implements AnyLock 

Implements: AnyLock

Methods

Method

Modifiers

Description

acquire()

Always acquires, because it's no lock

destroy()

Safely destroys this no lock

dispose()

Frees no resources: no lock holds none

init()

Init no lock

isAcquired()

Always acquired, because it's no lock

onAcquire(handler)

Registers nothing: NoLock.acquire() always succeeds immediately, so there is no late takeover for the handler to report.

onRelease(handler)

Registers nothing: a no-op lock is never held, so it is never released and the handler could never fire.

release()

Never releases, because it's no lock

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.