Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
context: add default to select example in comment of Done
According to the comment of Stream, it should return once ctx.Done is closed, but the current implementation may select another case instead if out is ready to receive an element. Quoting from the related Go spec: "If one or more of the communications can proceed, a single one that can proceed is chosen via a uniform pseudo-random selection." https://go.dev/ref/spec#Select_statements
- Loading branch information