(self: Stream<A, E, R>)
| 2179 | upstreamLatch.openUnsafe() |
| 2180 | return Effect.as(sinkLatch.await, chunk_) |
| 2181 | }), |
| 2182 | Pull.catchDone(() => { |
| 2183 | streamDone = true |
| 2184 | sinkLatch.closeUnsafe() |
| 2185 | upstreamLatch.openUnsafe() |
| 2186 | return Effect.flatMap(sinkLatch.await, () => Cause.done()) |
| 2187 | }) |
| 2188 | ) |