gowp icon indicating copy to clipboard operation
gowp copied to clipboard

golang worker pool , Concurrency limiting goroutine pool

Results 2 gowp issues
Sort by recently updated
recently updated
newest added

我现在要实现一个功能,类似于Promise.race() 就是只要有一个任务成功了,就算成功,其他的任务就不要执行了,我需要在异步函数中调用Close方法

请教一下如果我要把worker分开写一个func,那么怎么样传参数呢