]> Cypherpunks repositories - gostls13.git/commit
iter, runtime: add coroutine support
authorRuss Cox <rsc@golang.org>
Mon, 20 Nov 2023 00:22:48 +0000 (11:22 +1100)
committerRuss Cox <rsc@golang.org>
Wed, 6 Dec 2023 21:33:59 +0000 (21:33 +0000)
commita9c9cc07ac0d3dc73865a57e6ce45c22ada3b5c9
tree3af7370029ab39e34d72b7a10509559a62dd74b9
parent459cd35ec092fdb48e1825ccd01fb630a77474bf
iter, runtime: add coroutine support

The exported API is only available with GOEXPERIMENT=rangefunc.
This will let Go 1.22 users who want to experiment with rangefuncs
access an efficient implementation of iter.Pull and iter.Pull2.

For #61897.

Change-Id: I6ef5fa8f117567efe4029b7b8b0f4d9b85697fb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/543319
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/dist/test.go
src/cmd/internal/objabi/funcid.go
src/go/build/deps_test.go
src/internal/abi/symtab.go
src/iter/iter.go [new file with mode: 0644]
src/iter/pull_test.go [new file with mode: 0644]
src/runtime/coro.go [new file with mode: 0644]
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/sizeof_test.go
src/runtime/traceback.go