MCPcopy
hub / github.com/coder/mux / push

Function push

src/node/orpc/router.ts:1040–1049  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1038 let ended = false;
1039
1040 const push = () => {
1041 if (ended) return;
1042 if (resolveNext) {
1043 const resolve = resolveNext;
1044 resolveNext = null;
1045 resolve();
1046 } else {
1047 pendingNotification = true;
1048 }
1049 };
1050
1051 const unsubscribe = context.config.onConfigChanged(push);
1052

Callers 6

onEventFunction · 0.70
routerFunction · 0.70
onMetadataFunction · 0.70
handleSessionMessageFunction · 0.70
finishReplayFunction · 0.70
runChatSubscriptionMethod · 0.50

Calls 2

pushMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected