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

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: function): void

Parameters:

handler: function

▸ (channel: string): void

Parameters:

Name Type
channel string

Returns: void


release

release(): Promise‹void›

Implementation of AnyLock

Never releases, because it's no lock

Returns: Promise‹void›

Clone this wiki locally