1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

release v2.0.5

This commit is contained in:
dudaodong
2022-04-24 10:34:25 +08:00
parent c524eb04a1
commit e614274f07
3 changed files with 3 additions and 3 deletions

View File

@@ -216,7 +216,7 @@ func (c *Channel) Or(channels ...<-chan any) <-chan any {
return orDone
}
// OrDone
// OrDone read a channel into another channel, will close until cancel context.
func (c *Channel) OrDone(ctx context.Context, channel <-chan any) <-chan any {
valStream := make(chan any)