MCPcopy
hub / github.com/WiseLibs/better-sqlite3 / whileBusy

Function whileBusy

test/42.integrity.js:30–35  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

28 expect(count).to.equal(5);
29 };
30 const whileBusy = (self, fn) => {
31 let count = 0;
32 self.useFunc(() => { count += 1; fn(); });
33 self.iterator.all();
34 expect(count).to.equal(5);
35 };
36 const whileClosed = (self, fn) => {
37 self.db.close();
38 fn();

Callers 1

42.integrity.jsFile · 0.85

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…