]> Cypherpunks repositories - gostls13.git/commit
iter: propagate panics from the iterator passed to Pull
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 31 May 2024 20:10:09 +0000 (20:10 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 7 Jun 2024 19:09:09 +0000 (19:09 +0000)
commit1471978bacf91bd9de273e6f265ed31def83711a
tree2f1934475a2c7224dd75f4fb4355222d005ebb69
parentd5e5b143057921721061c3f39f14061370e4a732
iter: propagate panics from the iterator passed to Pull

This change propagates panics from the iterator passed to Pull through
next and stop. Once the panic occurs, next and stop become no-ops (the
iterator is invalidated).

For #67712.

Change-Id: I05e45601d4d10acdf51b53e3164bd891c1b324ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/589136
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/iter/iter.go
src/iter/pull_test.go