MCPcopy Create free account
hub / github.com/Effect-TS/effect / Stream

Function Stream

packages/effect/src/unstable/rpc/RpcSchema.ts:81–83  ·  view source on GitHub ↗
(success: A, error: E)

Source from the content-addressed store, hash-verified

79 * @since 4.0.0
80 */
81export function Stream<A extends Schema.Constraint, E extends Schema.Constraint>(success: A, error: E): Stream<A, E> {
82 return Schema.make(schema.ast, { [StreamSchemaTypeId]: StreamSchemaTypeId, success, error })
83}
84
85/**
86 * Annotation that marks interruptions that originate from an RPC client

Callers

nothing calls this directly

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected