MCPcopy Create free account
hub / github.com/effect-app/libs / StreamResponseChunk

Function StreamResponseChunk

packages/effect-app/src/rpc/Invalidation.ts:99–104  ·  view source on GitHub ↗
(success: S)

Source from the content-addressed store, hash-verified

97 * accumulated since the last drain (V3: mid-stream invalidation).
98 */
99export const StreamResponseChunk = <S extends S.Top>(success: S) =>
100 S.Union([
101 S.Struct({ _tag: S.Literal("value"), value: success }),
102 S.Struct({ _tag: S.Literal("metadata"), metadata: CommandMetaData }),
103 S.Struct({ _tag: S.Literal("done"), metadata: CommandMetaData })
104 ])
105
106export type StreamResponseChunk<A> =
107 | { readonly _tag: "value"; readonly value: A }

Callers 1

Invalidation.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…