inference-server
Version:
Libraries and server to build AI applications. Adapters to various native bindings allowing local inference. Integrate it with your application, or use as a microservice.
8 lines (7 loc) • 362 B
TypeScript
/**
* Acquire a lock on a file or directory, creating the resource if it does not exist.
* @param fileOrDirPath Path to the file or directory to lock.
* @param signal Abort signal to release the lock.
* @returns A function that releases the lock.
*/
export declare function acquireFileLock(fileOrDirPath: string, signal?: AbortSignal): Promise<() => void>;