Commit Graph

606 Commits

Author SHA1 Message Date
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 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() 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
Andy Pan 03011bc512 chore: add release-drafter action 2022-12-11 18:31:32 +08:00
Andy Pan 668e945f4c chore: reset the required go version to go1.13 2022-12-10 22:36:43 +08:00
Andy Pan 5791c39f93 chore: update the issue template of bug report 2022-11-27 18:15:49 +08:00
Andy Pan 48ff383ed2 chore: run codeql only on linux 2022-11-27 02:25:39 +08:00
Andy Pan 011b98b3e0 chore: update the issue templates 2022-11-27 02:16:08 +08:00
Andy Pan ad3f65bf5b Remove the ineffectual info from README's 2022-11-20 22:44:17 +08:00
Andy Pan b4dedcd523 ci: refine the Github action workflows 2022-11-20 11:23:35 +08:00
Andy Pan b604f7dc64 opt: fix the timeout error of ReleaseTimeout() with DisablePurge=true and improve tests 2022-10-11 22:52:13 +08:00
zhenshan.cao 8b106abaf3
Add option to turn off automatically purge (#253)
Fixes #252 

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2022-10-11 21:16:04 +08:00
Andy Pan 06e6934c35 Update READMEs 2022-08-24 21:17:54 +08:00
Z.Q.K 32664cb140 remove redundancy code 2022-06-27 09:29:50 +08:00
Andy Pan f85611741e chore: update the tested versions of go in READMEs 2022-06-10 09:54:25 +08:00
Andy Pan a35b88d906 doc: update READMEs 2022-05-13 23:31:30 +08:00
Andy Pan 9310acdff2 feat: implement pool.Waiting() API
Fixes #157
2022-05-07 22:43:25 +08:00
Andy Pan 607d0390c6 chore: bump up some dependencies and Go version 2022-05-06 23:04:51 +08:00
Andy Pan eedcecdf4a chore: update Github actions workflow 2022-05-06 22:32:56 +08:00
Andy Pan 15f3cdfb7b opt: refine ReleaseTimeout() 2022-05-06 20:27:08 +08:00
Andy Pan 9d85d57cc4 chore: add more use cases 2022-05-06 19:29:32 +08:00
Andy Pan 96d074234a Add a new method -- ReleaseTimeout() for waiting all workers to exit
Fixes #212
2022-03-08 16:28:12 +08:00
Andy Pan 134f354e8e Add a new use case 2022-02-23 00:48:19 +08:00
codingfanlt fbd17036db
Awake the blocking callers when Tune(size int) is invoked to expand the pool (#210)
Fixes #205
2022-02-14 21:51:40 +08:00
Andy Pan 0fa2fd6dc1 Resolve lint issues 2022-02-08 13:55:42 +08:00
Andy Pan 8d03fcf77f Fix the bug that blocks forever when call Release() before all tasks are done
Fixes #202
2022-02-08 13:53:21 +08:00
Bright Hsu 1bd4304727
Implement binary algorithm for speeding up the cleanup of expired workers in loop queue (#206) 2022-01-31 10:49:03 +08:00
Andy Pan f85be55586 Use HTTP instead of HTTPS since Camo doesn't support SNI 2022-01-26 23:28:16 +08:00
Andy Pan 1e89742186 Update READMEs 2021-11-27 20:23:15 +08:00
Andy Pan 26d1224862 Reduce the maximum times of backoff in spin lock and update the tests 2021-11-27 20:21:45 +08:00
Andy Pan d3e3a334a3 Update README's 2021-11-25 23:10:31 +08:00
Andy Pan f9266077b7 Update the list of use cases 2021-11-25 01:37:39 +08:00
Andy Pan fdb318c1d7 Remove the unused error type and update some comments 2021-11-24 00:42:50 +08:00
Andy Pan 91b12588db Add comments about calling Submit()/Invoke() from Submit()/Invoke()
Fixes #197
2021-11-23 23:57:03 +08:00
Andy Pan 59fbca71b6
Create FUNDING.yml 2021-11-02 22:48:11 +08:00
Lien Li 76ce0ce24f
add shopify into user cases (#189)
Fixes #188
2021-10-13 21:42:41 +08:00
Chris 3f9c4cd548
Update the link of one of the relevant articles (#186)
re: #185
2021-09-27 10:38:55 +08:00
Chris 61d120b6f0
Update the link of one of the relevant articles (#185) 2021-09-19 10:56:40 +08:00
Zhening Li f62e8ab1e0
style: fixed some typos in the comments (#184)
* style: fixed some typos in the comments

* style: add space between en and zh words

Co-authored-by: Zhening <18501262663@163.com>
2021-09-13 11:57:25 +08:00
Andy Pan 6de43fdfb9 Add a new patron 2021-08-28 11:38:19 +08:00
Andy Pan 4733584056 Add DigitalOcean as the sponsorship of ants 2021-07-29 09:13:38 +08:00
thinkgo cfb27797a8
Fix CI workflow to make the cache action really work (#174) 2021-07-21 11:21:49 +08:00
jdamick 63489606ef
Fix the timing issue in the TestNonblockingSubmitWithFunc (#172)
On some machines this unit would fail due to a timing issue.  Since the Invoke in the loop was using nil as the param, it would (depending on timing) lead to the workers finishing the  (w *goWorkerWithFunc) run() in the range loop over w.args as args would == nil and return.

If an explicit time.Sleep(1 * time.Second) is added before the "	assert.EqualError(t, p.Invoke(nil), ErrPoolOverload.Error()," it is easily reproducible.

Co-authored-by: Jeffrey Damick <jdamick@amazon.com>
2021-07-12 22:52:47 +08:00