Files
CommunitySolidServer/lib/storage/Lock.ts
2020-05-19 12:22:25 +02:00

11 lines
234 B
TypeScript

/**
* Lock used by a {@link ResourceLocker} for non-atomic operations.
*/
export interface Lock {
/**
* Release this lock.
* @returns A promise resolving when the release is finished.
*/
release: () => Promise<void>;
}