Hi! Is there any appetite to expose runtime.newcoro/coroswitch? They seem really useful beyond iter.Pull. They actually have the go:linkname handshake, but are then explicitly banned <https://github.com/golang/go/blob/f062d7b10b276c1b698819f492e4b4754e160ee3/src/cmd/link/internal/loader/loader.go#L2337-L2338> in the linker.
I wanted to implement this "push like" interface <https://pkg.go.dev/github.com/ncruces/go-sqlite3#AggregateFunction> with a "processor" function that accepts an iter.Seq and returns a result: func processor(seq iter.Seq[value]) result { ... } I've been cracking my head, and I'm convinced I can't with just iter.Seq/iter.Pull: I need a co/goroutine (and coroswitch, or channels). My implementation is here: https://github.com/ncruces/go-sqlite3/pull/229/files Maybe there's another higher level abstraction like iter.Pull we could build instead, but it's not apparent to me? Regards, Nuno Cruces -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/db7bd6ca-c4d1-4619-89b8-addbf0f4adddn%40googlegroups.com.