646 Commits

Author SHA1 Message Date
Andy Pan
306f027948 chore: fix some broken image links 2023-12-13 13:25:25 +08:00
POABOB
8b0eb06e60
doc: add MultiPool & MultiPoolFunc example code and update READMEs. (#311) 2023-11-27 10:56:56 +08:00
Andy Pan
1dbe4629aa
chore: add new benchmark tests (#309) 2023-11-21 18:16:18 +08:00
Andy Pan
fb82167503
opt: fall back to LeastTasks when RoundRobin can't find a worker (#306)
Besides, update a few comments and add new benchmarks for multi-pool
2023-11-21 13:22:02 +08:00
Andy Pan
19bd1ea02b
feat: add MultiPool and MultiPoolWithFunc (#305) 2023-11-21 11:53:46 +08:00
POABOB
27685ba408
refactor: enforce a few minor optimization in code (#302) 2023-10-18 14:59:30 +08:00
Andy Pan
d9a08d1309
chore: eliminate some useless content (#303) 2023-10-18 14:58:26 +08:00
Andy Pan
f0b98c348a
chore: enable more title matchers for auto-labelers of bug and new feature (#300) 2023-09-18 23:12:39 +08:00
Andy Pan
c8b4646d89
chore: enable more auto-labelers for PRs (#298)
* chore: enable auto-labeler for PRs of updating semantic version

* chore: enable auto-labeler for PRs doing chores
2023-09-18 23:04:41 +08:00
Andy Pan
2ce8d85f28
bug: return the error from Pool.Submit/PoolWithFunc.Invoke accordingly (#297) 2023-09-18 22:40:46 +08:00
Andy Pan
45bc4f51ba
chore: clean up some comments and CI yaml (#296) 2023-09-18 22:37:02 +08:00
POABOB
aee9c2e2da
refactor: refine the code in retrieveWorker to make it more readable (#295) 2023-09-17 22:06:25 +08:00
Andy Pan
1ce814699d
chore: bump up modules (#292) 2023-08-13 17:28:43 +08:00
Andy Pan
16771ceb8f chore: update READMEs 2023-07-23 12:18:13 +08:00
Andy Pan
1da45fef96
chore: add a new use case (#290) 2023-07-14 19:16:16 +08:00
E_L
2806c4af7c
opt: fix the potential goroutine leak after calling Release() (#287)
Co-authored-by: EL <evnldn9321@gmail.com>
2023-07-06 14:51:22 +08:00
Andy Pan
45a0390a9f chore: refine paths-ignore for all GitHub actions 2023-07-01 14:37:10 +08:00
E_L
a66958c9d3
feat: add a new API ReleaseTimeout for the default pool (#285)
Co-authored-by: EL <evnldn9321@gmail.com>
2023-07-01 12:55:34 +08:00
Andy Pan
d3b35b8db2 chore: update some workflows 2023-06-30 21:24:02 +08:00
Andy Pan
89ecc3ff68 chore: update the workflow of "Check pull request target" 2023-06-30 21:17:48 +08:00
Andy Pan
46f9b68028 chore: update the workflow of pull requests 2023-06-30 20:30:36 +08:00
Andy Pan
2c599b83a1 chore: ignore some cases for GitHub actions of testing 2023-06-29 15:16:32 +08:00
Andy Pan
daef17d647 chore: update the issue template 2023-06-29 13:22:55 +08:00
Andy Pan
7be597c9e8 chore: code cleanup 2023-06-09 00:14:11 +08:00
gocurr
67b3a7a2c3
bug: avoid overflow when computing mid in the binarySearch of the workerStack (#278) v2.7.5 2023-06-08 20:27:59 +08:00
Andy Pan
9fdd99a7b4 ci: update workflow 2023-05-21 16:04:11 +08:00
Andy Pan
b9ac4d4730 chore: update READMEs 2023-05-21 16:00:19 +08:00
Zhanghuixian Luo
bca5b3a7d6
bug: fix the missing log.Lmsgprefix in go1.13 (#275)
Fixes #274
---------

Co-authored-by: Andy Pan <panjf2000@gmail.com>
v2.7.4
2023-05-11 10:05:22 +08:00
Andy Pan
b32591f8bd opt: awake blocking goroutines more precisely in purgeStaleWorkers
Fixes #272
v2.7.3
2023-04-15 23:47:55 +08:00
Andy Pan
73defa0289 chore: rename the internal method in workerQueue 2023-04-04 13:01:14 +08:00
Andy Pan
650c9db322 chore: delete the useless .travis.yml 2023-03-23 18:36:18 +08:00
Andy Pan
4b495fd500 chore: code cleanup v2.7.2 2023-03-23 18:18:52 +08:00
Andy Pan
55e222d20f chore: rename the method 'when' of worker to 'lastUsedTime' 2023-03-23 15:19:35 +08:00
Andy Pan
e425c7b917 chore: rename the field 'recycleTime' of worker to 'lastUsed' 2023-03-23 15:18:56 +08:00
Andy Pan
7a56a5c082 opt: use runtime/debug.Stack() to print stack trace of panic 2023-03-23 14:42:17 +08:00
Andy Pan
3110e41921 chore: reformat the default log string 2023-03-23 14:40:49 +08:00
Andy Pan
0313effc53 opt: refactor the worker queue for reusability and readability of code 2023-03-23 12:28:47 +08:00
Andy Pan
b880b659f5 chore: bump up golangci-lint to v1.51.2 2023-03-09 00:51:06 +08:00
Andy Pan
22139c0295
Update FUNDING.yml 2023-03-08 10:02:52 +08:00
Andy Pan
33c77540bd doc: update use cases 2023-03-07 10:46:27 +08:00
Andy Pan
711cad9624 chore: reorganize the structure of internal packages 2023-02-19 22:46:33 +08:00
Andy Pan
88d2454bbb fix: resolve the build failures v2.7.1 2022-12-20 22:29:21 +08:00
Andy Pan
b6eaea118b opt: refine some code 2022-12-20 22:09:35 +08:00
Andy Pan
858f91f48b chore: code cleanup 2022-12-20 21:55:28 +08:00
Andy Pan
4e0cb8cd03 chore: don't start workflow to scan code when there is no code changes 2022-12-20 21:36:02 +08:00
Andy Pan
b1b2df0c10 chore: fix the broken build status icon 2022-12-20 21:33:16 +08:00
Gleb Radchenko
23c4f48d0d fix: exit ticktock goroutine when pool is closed 2022-12-20 21:15:34 +08:00
Andy Pan
3fbd9567c9 opt: leverage binary-search algorithm to speed up PoolWithFunc.purgeStaleWorkers() v2.7.0 2022-12-11 19:49:58 +08:00
Andy Pan
7b1e246b0e chore: add errorgroup for benchmark 2022-12-11 19:49:58 +08:00
Andy Pan
846d76a437 opt: cache current time for workders and update it periodically 2022-12-11 19:49:58 +08:00