MCPcopy Create free account
hub / github.com/6174/comflowyspace / newDispatcher

Function newDispatcher

apps/node/src/routes/api/bootstrap.ts:90–96  ·  view source on GitHub ↗
(event: PartialTaskEvent)

Source from the content-addressed store, hash-verified

88 name: taskType,
89 executor: async (dispatcher): Promise<boolean> => {
90 const newDispatcher = (event: PartialTaskEvent) => {
91 dispatcher(event);
92 comfyuiService.comfyuiProgressEvent.emit({
93 type: "OUTPUT",
94 message: event.message || ""
95 })
96 }
97 async function withTimeout(task: Promise<any>, timeout: number, errorMessage: string): Promise<boolean> {
98 const timeoutId = setTimeout(() => {
99 newDispatcher({ type: 'TIMEOUT', message: errorMessage });

Callers 2

withTimeoutFunction · 0.70
ApiBootstrapFunction · 0.70

Calls 1

emitMethod · 0.45

Tested by

no test coverage detected