Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResourceLocker<T>

Allows the locking of resources which is needed for non-atomic ResourceStores.

Type parameters

Hierarchy

  • ResourceLocker

Index

Properties

Properties

acquire

acquire: (identifier: ResourceIdentifier) => Promise<T>

Lock the given resource.

param

Identifier of the resource that needs to be locked.

returns

A promise containing the lock on the resource.

Type declaration