MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / async

Function async

benchmark/benchmark.js:9–12  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

7};
8
9const async = (fn) => {
10 const wrapped = cb => fn().then(() => cb(), cb);
11 benchmark(wrapped).then(display);
12};
13
14const display = (result) => {
15 process.stdout.write(String(result).replace(/ \(.*/, ''));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected