MCPcopy Create free account
hub / github.com/anomalyco/opencode / runHandler

Function runHandler

packages/http-recorder/src/socket.ts:68–72  ·  view source on GitHub ↗
(handler: (value: A) => Effect.Effect<unknown, E, R> | void, value: A)

Source from the content-addressed store, hash-verified

66 })
67
68const runHandler = <A, E, R>(handler: (value: A) => Effect.Effect<unknown, E, R> | void, value: A) =>
69 Effect.suspend(() => {
70 const result = handler(value)
71 return Effect.isEffect(result) ? Effect.asVoid(result) : Effect.void
72 })
73
74const runReplay = <A, E, R>(
75 state: ActiveReplay,

Callers 1

runReplayFunction · 0.85

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected