Skip to main content
Version: 1.x

CreateMutex

createMutex​

Creates a new mutex instance with the specified configuration

Example

const mutex = createMutex({
timeout: 60000,
storage: new RedisMutexStorage()
});
Signature
function createMutex(options: MutexOptions): Mutex

Parameters

options​

parameter