MCPcopy
hub / github.com/prisma/prisma / then

Method then

packages/client/src/runtime/core/request/PrismaPromise.ts:43–43  ·  view source on GitHub ↗

* Extension of the original `.then` function * @param onfulfilled same as regular promises * @param onrejected same as regular promises * @param transaction transaction options

(
    onfulfilled?: (value: TResult) => R1 | PromiseLike<R1>,
    onrejected?: (error: unknown) => R2 | PromiseLike<R2>,
    transaction?: PrismaPromiseTransaction,
  )

Source from the content-addressed store, hash-verified

41 * @param transaction transaction options
42 */
43 then<R1 = TResult, R2 = never>(
44 onfulfilled?: (value: TResult) => R1 | PromiseLike<R1>,
45 onrejected?: (error: unknown) => R2 | PromiseLike<R2>,
46 transaction?: PrismaPromiseTransaction,

Callers 15

teardownScenarioFunction · 0.65
build.tsFile · 0.65
dispatchBatchesMethod · 0.65
waitForBatchFunction · 0.65
thenFunction · 0.65
test.tsFile · 0.65
deferredBenchFunction · 0.65
tests.tsFile · 0.65
tests.tsFile · 0.65

Calls

no outgoing calls

Tested by 3

teardownScenarioFunction · 0.52
deferredBenchFunction · 0.52
deferredTransactionFunction · 0.52