sourcegraph / conc

Better structured concurrency for go
https://about.sourcegraph.com/blog/building-conc-better-structured-concurrency-for-go
MIT License
9.05k stars 312 forks source link

希望能兼容 go 1.18版本 #102

Closed cuijianguo closed 1 year ago

cuijianguo commented 1 year ago

希望能兼容 go 1.18版本

fifsky commented 1 year ago

According to the Go official Release Policy, Each major Go release is supported until there are two newer major releases.

So, upgrading golang would be a better way

https://go.dev/doc/devel/release

camdencheek commented 1 year ago

Yeah, this library makes pretty heavy use of the new generics added to the sync/atomic library in go1.19. It wouldn't be impossible to remove them to support go 1.18, but I find they make the code much more readable and more maintainable.

Given that go 1.18 is out of the support window by the go team, I do not plan to update the library to work with go 1.18.