conc
conc copied to clipboard
Better structured concurrency for go
There are a lot of use cases that aren't covered in the README. It would be nice to have a runnable "examples" folder that includes a bunch of common recipes.
During the period before the release of golang1.20, many unnecessary dependencies may also bring some obstacles to the use of some large-scale projects. It is hoped that it can be...
It is not safe to reconfigure a pool after calling `Go` for the first time, but neither the API nor the documentation makes this super obvious. To protect users from...
Replace github.com/sourcegraph/lib/errors with the standard library implementation. Resolves #52.
I like what you have built here, It's almost exactly what we need! We at mailgun have been using https://github.com/mailgun/holster/tree/master/syncutil for quite some time. However, there are two things missing...
Sometimes there are cases, when goroutines states should be printed in console. Similar functionality: [hmdsefi/gowl](https://github.com/hmdsefi/gowl?utm_campaign=awesomego&utm_medium=referral&utm_source=awesomego#monitor) Usage proposal: ``` p := pool.New().WithMaxGoroutines(10).WithMonitor(monitor, time.Second) p.Go(func(tp *threadParameter) (res interface{}, err error) { tp.setState("Doing...
Sometimes we need to run a lot of tasks, grouped into small sets (less than goroutines count). The effective way is to run groups concurrently, not one-by-one (they are small)....
`conc` is very wonderful to writing concurrent code, thanks for your project! Currently, there is only `iter.Map()` run from a slice. But sometimes we need to concurrently run from a...
Adding error returning iterators