Hi Sotirios, Why not something like this?
// Stops and returns if any error is encountered by a work function, otherwise returns nil. // Processes work at the pace of runtime.NumCPU() parallelization. func Process(callback func(interface{}), work ...func() (interface{}, error )) error Matt On Wednesday, March 14, 2018 at 3:54:24 PM UTC-5, Sotirios Mantziaris wrote: > > Hi, > > > i have created a package which uses the fork-join model to parallelize > work. > > Check out my blog > <http://blog.mantziaris.eu/blog/2018/03/14/parallelize-work-using-parwork/>and > > the Github <https://github.com/mantzas/parwork>repository. > > > Any feedback is highly welcome. > > > Thanks > > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.