Skip to content
Mykhailo Stadnyk edited this page Nov 23, 2020 · 2 revisions

Globals / NoLock

Class: NoLock

Implements no lock to be used with multi-listener approach

Hierarchy

  • NoLock

Implements

Index

Methods

Methods

acquire

acquire(): Promise<boolean>

Implementation of AnyLock

Always acquires, because it's no lock

Returns: Promise<boolean>


destroy

destroy(): Promise<void>

Implementation of AnyLock

Safely destroys this no lock

Returns: Promise<void>


init

init(): Promise<void>

Implementation of AnyLock

Init no lock

Returns: Promise<void>


isAcquired

isAcquired(): boolean

Implementation of AnyLock

Always acquired, because it's no lock

Returns: boolean


onRelease

onRelease(handler: (channel: string) => void): void

Parameters:

Name Type
handler (channel: string) => void

Returns: void


release

release(): Promise<void>

Implementation of AnyLock

Never releases, because it's no lock

Returns: Promise<void>

Clone this wiki locally