MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / withLock

Function withLock

lib/lock.mjs:6–8  ·  view source on GitHub ↗
(path, executeTask)

Source from the content-addressed store, hash-verified

4
5// Obtains a lock on the path, and maintains it until the task finishes
6async function withLock (path, executeTask) {
7 return await lock.acquire(path, executeTask)
8}
9
10export default withLock

Callers 7

readResourceMethod · 0.85
putMethod · 0.85
checkFileExtensionMethod · 0.85
getMethod · 0.85
deleteDocumentMethod · 0.85
patchMethod · 0.85
patchHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected