MCPcopy Index your code
hub / github.com/callstack/agent-device / withRequestProgressSink

Function withRequestProgressSink

src/daemon/request-progress.ts:68–73  ·  view source on GitHub ↗
(
  sink: RequestProgressSink | undefined,
  run: () => Promise<T>,
)

Source from the content-addressed store, hash-verified

66>();
67
68export async function withRequestProgressSink<T>(
69 sink: RequestProgressSink | undefined,
70 run: () => Promise<T>,
71): Promise<T> {
72 return await requestProgress.run(sink, run);
73}
74
75export function emitRequestProgress(event: RequestProgressEvent): void {
76 requestProgress.getStore()?.(event);

Callers 5

createSocketServerFunction · 0.90
createDaemonHttpServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected