MCPcopy Index your code
hub / github.com/Effect-TS/effect / stream

Function stream

packages/experimental/src/Reactivity.ts:131–138  ·  view source on GitHub ↗
(
    tables: ReadonlyArray<unknown> | ReadonlyRecord<string, ReadonlyArray<unknown>>,
    effect: Effect.Effect<A, E, R>
  )

Source from the content-addressed store, hash-verified

129 })
130
131 const stream = <A, E, R>(
132 tables: ReadonlyArray<unknown> | ReadonlyRecord<string, ReadonlyArray<unknown>>,
133 effect: Effect.Effect<A, E, R>
134 ): Stream.Stream<A, E, Exclude<R, Scope.Scope>> =>
135 query(tables, effect).pipe(
136 Effect.map(Mailbox.toStream),
137 Stream.unwrapScoped
138 )
139
140 return Reactivity.of({ mutation, query, stream, unsafeInvalidate, invalidate, unsafeRegister })
141})

Callers

nothing calls this directly

Calls 3

queryFunction · 0.85
pipeMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…