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