Skip to main content
Version: Next

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