Interface FileSystemLocking
interface FileSystemLocking { lockPath<T>(lockPath,
transaction,
thisArg?): Promise<T>; } Methods
lockPath
- lockPath<T>(lockPath, transaction, thisArg?): Promise<T>
Parameters
- lockPath: string
- transaction: ((lockPath) => T | Promise<T>)
- (lockPath): T | Promise<T>
Returns T | Promise<T>
Optional
thisArg: unknown
Returns Promise<T>
Use this backend service to help prevent race access to files on disk.