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

Function changesStream

packages/effect/src/TxSubscriptionRef.ts:496–502  ·  view source on GitHub ↗
(self: TxSubscriptionRef<A>)

Source from the content-addressed store, hash-verified

494 * @since 3.10.0
495 */
496export const changesStream = <A>(self: TxSubscriptionRef<A>): Stream.Stream<A, never, never> =>
497 Stream.unwrap(
498 Effect.map(
499 changes(self),
500 (sub) => Stream.fromEffectRepeat(Effect.tx(TxQueue.take(sub)))
501 )
502 )
503
504// =============================================================================
505// Guards

Callers

nothing calls this directly

Calls 3

changesFunction · 0.70
takeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected