MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / lock

Function lock

app/src/sqlite/dialect.ts:72–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71 return {
72 async lock() {
73 while (promise != null) await promise
74 promise = new Promise((r) => (resolve = r))
75 },
76 unlock(): void {
77 const unlock = resolve
78 promise = undefined

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected