]> Cypherpunks repositories - gostls13.git/commit
iter: propagate runtime.Goexit from iterator passed to Pull
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 31 May 2024 20:22:32 +0000 (20:22 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 7 Jun 2024 19:09:18 +0000 (19:09 +0000)
commit9d2aeae72d34880510c7221f35ab61171cec1ffd
treec2519cdfebe24e6f3b731df878e24c178c9cc633
parent1471978bacf91bd9de273e6f265ed31def83711a
iter: propagate runtime.Goexit from iterator passed to Pull

This change propagates a runtime.Goexit initiated by the iterator into
the caller of next and/or stop.

Fixes #67712.

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