MCPcopy Create free account
hub / github.com/chhoumann/quickadd / push

Method push

src/interactive/interactivePromptServer.ts:368–380  ·  view source on GitHub ↗
(session: Session, event: ServerEvent)

Source from the content-addressed store, hash-verified

366 }
367
368 private push(session: Session, event: ServerEvent): void {
369 if (session.waiter) {
370 const waiter = session.waiter;
371 session.waiter = null;
372 if (session.waiterTimer) {
373 window.clearTimeout(session.waiterTimer);
374 session.waiterTimer = null;
375 }
376 waiter(event);
377 } else {
378 session.queue.push(event);
379 }
380 }
381
382 private destroySession(session: Session): void {
383 if (session.waiterTimer) window.clearTimeout(session.waiterTimer);

Callers 15

emitPromptMethod · 0.95
finishMethod · 0.95
constructorMethod · 0.80
getSettingDefinitionsMethod · 0.80
walkFunction · 0.80
resolveSpecFunction · 0.80
strongconnectFunction · 0.80
GetApiMethod · 0.80

Calls

no outgoing calls

Tested by 15

constructorMethod · 0.64
walkFunction · 0.64
resolveSpecFunction · 0.64
strongconnectFunction · 0.64
suggestForValueMethod · 0.64
suggestForFieldMethod · 0.64
promptForVariableMethod · 0.64
suggestForValueMethod · 0.64
runAndGetOutputMethod · 0.64
regexSpansFunction · 0.64
promptForVariableMethod · 0.64
suggestForValueMethod · 0.64