MCPcopy
hub / github.com/prisma/prisma / push

Method push

packages/cli/src/generate/Watcher.ts:9–17  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

7 private _deferred: Resolve<T> | undefined
8
9 push(value: T) {
10 // if we are already waiting for next even, resolve next promise
11 if (this._deferred) {
12 this._deferred(value)
13 this._deferred = undefined
14 } else {
15 this._queue.push(value)
16 }
17 }
18
19 nextEvent(): Promise<T> {
20 const event = this._queue.shift()

Callers 15

mergeByFunction · 0.45
groupByFunction · 0.45
requestMethod · 0.45
prism.tsFile · 0.45
deserializeRawResultFunction · 0.45
stringifyErrorMessageFunction · 0.45
stringifyLocationInFileFunction · 0.45
addSuggestionMethod · 0.45
unknownArgumentMessageFunction · 0.45

Calls

no outgoing calls

Tested by 10

mainFunction · 0.36
generateSentenceMethod · 0.36
generateParagraphMethod · 0.36
generateContentMethod · 0.36
seedDatabaseFunction · 0.36
allFilesFunction · 0.36
makeTestCombinationsFunction · 0.36
startTestServerFunction · 0.36
configContextContributorFunction · 0.36
firstPluginFunction · 0.36