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

Function next

packages/effect/test/Channel.test.ts:82–86  ·  view source on GitHub ↗
(this: { n: number })

Source from the content-addressed store, hash-verified

80 const result = yield* Channel.fromIterator(() => ({
81 n: 0,
82 next(this: { n: number }) {
83 return this.n === 5
84 ? { done: true, value: this.n }
85 : { done: false, value: this.n++ }
86 }
87 })).pipe(Channel.runCollect)
88 assert.deepStrictEqual(result, [0, 1, 2, 3, 4])
89 }))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected