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

Function array

packages/effect/src/internal/stream/emit.ts:52–55  ·  view source on GitHub ↗
(items: ReadonlyArray<A>)

Source from the content-addressed store, hash-verified

50export const makePush = <E, A>(mailbox: Mailbox.Mailbox<A, E>): Emit.EmitOpsPush<E, A> => {
51 let finished = false
52 function array(items: ReadonlyArray<A>) {
53 if (finished) return false
54 return Chunk.isEmpty(mailbox.unsafeOfferAll(items))
55 }
56 function done(exit: Exit.Exit<A, E>) {
57 if (finished) return
58 finished = true

Callers 1

chunkFunction · 0.70

Calls 2

unsafeOfferAllMethod · 0.80
isEmptyMethod · 0.65

Tested by

no test coverage detected