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

Function fromChunk

packages/effect/src/internal/stream.ts:3015–3016  ·  view source on GitHub ↗
(chunk: Chunk.Chunk<A>)

Source from the content-addressed store, hash-verified

3013
3014/** @internal */
3015export const fromChunk = <A>(chunk: Chunk.Chunk<A>): Stream.Stream<A> =>
3016 new StreamImpl(Chunk.isEmpty(chunk) ? core.void : core.write(chunk))
3017
3018/** @internal */
3019export const fromChunkPubSub: {

Callers 4

fromIterableFunction · 0.85
succeedFunction · 0.85
syncFunction · 0.85
stream.tsFile · 0.85

Calls 2

isEmptyMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected