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

Function fromChunk

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

Source from the content-addressed store, hash-verified

3051
3052/** @internal */
3053export const fromChunk = <A>(chunk: Chunk.Chunk<A>): Stream.Stream<A> =>
3054 new StreamImpl(Chunk.isEmpty(chunk) ? core.void : core.write(chunk))
3055
3056/** @internal */
3057export 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