MCPcopy Index your code
hub / github.com/simstudioai/sim / then

Function then

packages/db/tx-tripwire.test.ts:122–124  ·  view source on GitHub ↗
(resolve: (value: T) => void)

Source from the content-addressed store, hash-verified

120 // await (inside the tx context) does not trip the wire.
121 const lazyQuery = {
122 then<T>(resolve: (value: T) => void) {
123 resolve(client.unsafe('select 1 as lazy_escaped') as T)
124 },
125 }
126 await runOutsideTransactionContext(() => lazyQuery)
127 })

Callers

nothing calls this directly

Calls 2

unsafeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected