ants
ants copied to clipboard
🐜🐜🐜 ants is a high-performance and low-cost goroutine pool in Go./ ants 是一个高性能且低损耗的 goroutine 池。
**System info (please complete the following information):** - OS: Windows - Go Version: 1.17 - ants version: v2.1.1 问题描述: 当前项目中采用的是ants.NewPoolWithFunc()方式进行协程处理并发任务,同时设置了最大阻塞ants.WithMaxBlockingTasks(100). 项目开始运行没有问题,但是当任务执行达到最大阻塞值的时候,项目就停止运行了,直接报错: `too many goroutines blocked on submit or Nonblocking is...
In the same hardware environment, I found similar results to the author's conclusion for go1.13 in my tests, but for 1.14 onwards, ants no longer has a time consumption advantage,...
**Is your feature request related to a problem? Please describe.** 当前 指定 pool size 且没有指定 Nonblocking 时, 当 pool 满了时 submit 是会阻寨的, 但有时我不能让任务一直等着, 想要加一个取消机制。 我想只要对 retrieveWorker 改造一下, 就可以实现了 ````go func...
这PoolWithFunc 和 goWorkerWithFunc 循环引用,没看明白为什么这样设计,求大佬解惑 
**What is your question about ants?** Please describe your question meticulously.
最新版的 v2.5.0 release后 仍然 purgePeriodically 循环 导致程序阻塞 ,是我用的不对吗 Type: delay Time: May 21, 2022 at 12:01am (CST) Duration: 20.02s, Total samples = 40s (199.80%) Entering interactive mode (type "help" for...
--- name: Pull request about: Support passing in arguments to sumit task title: '' labels: '' assignees: '' --- ## 1. Are you opening this pull request for bug-fixs, optimizations...
For example, i have struct Node {IP, Operation} IP + Operation should be executed respectively at same time. Some that will be cool if the code can work as follow:...
--- name: Pull request about: Possible panic caused by type conversion title: '' labels: '' assignees: '' --- ## 1. Are you opening this pull request for bug-fixs, optimizations or...
is the latest 1.18 go routine faster than this? just curious coz it seems faster etc now