(cause_)
| 3804 | let cause: Cause.Cause<OutErr | Cause.Done<OutDone>> | undefined |
| 3805 | const pullNext = Effect.matchCauseEffect(pull, { |
| 3806 | onFailure(cause_) { |
| 3807 | cause = cause_ |
| 3808 | const b = options?.onHalt && options.onHalt(state) |
| 3809 | return b && b.length > 0 |
| 3810 | ? Effect.succeed([state, b] as const) |
| 3811 | : Effect.failCause(cause_) |
| 3812 | }, |
| 3813 | onSuccess(a): Effect.Effect<readonly [state: S, values: ReadonlyArray<B>], E, R> { |
| 3814 | const b = f(state, a) |
| 3815 | return Arr.isArray(b) |