samber / lo

💥 A Lodash-style Go library based on Go 1.18+ Generics (map, filter, contains, find...)
https://pkg.go.dev/github.com/samber/lo
MIT License
17.43k stars 800 forks source link

Cancelable concurrent tasks #453

Open kcmvp opened 4 months ago

kcmvp commented 4 months ago

For concurrent tasks, there is a case that any task could cancel this group tasks under some condition. right now I am working on a storage respective project. I used the pattern very much, so I just wondering this may be implemented in more general way

samber commented 1 month ago

Can you review this PR please?

https://github.com/samber/lo/pull/267