(this: { n: number })
| 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 | })) |
nothing calls this directly
no outgoing calls
no test coverage detected