Skip to main content

withLocks

@hardkas/core


@hardkas/core / withLocks

Function: withLocks()

withLocks<T>(rootDir, names, fn, options?): Promise<T>

Defined in: packages/core/src/lock.ts:234

Helper to run a task with multiple locks in deterministic order.

Type Parameters​

T​

T

Parameters​

rootDir​

string

names​

string[]

fn​

() => Promise<T>

options?​

command?​

string

timeoutMs?​

number

wait?​

boolean

Returns​

Promise<T>