Commit Graph

559 Commits

Author SHA1 Message Date
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
Andy Pan 4b16a81116 Improve the exponential backoff algorithm in spin-lock 2021-06-22 18:06:51 +08:00
Andy Pan 1ce7c89177 Remove useless badge 2021-06-04 14:00:38 +08:00
Andy Pan b36422aac4 Update README 2021-05-28 20:52:38 +08:00
Andy Pan eeb3be1580 Add two new user cases 2021-05-28 20:21:31 +08:00
Andy Pan 8ab8c9f899 Improve some comments 2021-05-23 20:23:43 +08:00
Andy Pan a5ccf7622a Add new user case 2021-05-21 23:14:55 +08:00
Andy Pan 2b08f9fb1b Bump up go version to test 2021-05-19 19:01:58 +08:00
Andy Pan 2a6afefa00 Enables more linters in golangci-lint 2021-05-19 09:04:53 +08:00
Andy Pan bb601305c6 go mod tidy 2021-05-18 16:16:38 +08:00
Andy Pan 1a31e9a96b Ignore staticcheck lint in test 2021-05-18 16:09:23 +08:00
Andy Pan a71395c7c8 Improve the internal spin-lock 2021-05-18 15:43:13 +08:00
Andy Pan a2ad870d2d Returns -1 from Free() by unlimited pool
Fixes #152
2021-04-27 08:18:51 +08:00
Andy Pan dbcb6a104f Fix an issue that blocks all waiting callers when all workers panic
Fixes #146 #147
2021-03-28 22:37:56 +08:00
Andy Pan 2e763f1216 Update README 2021-03-19 01:25:16 +08:00
Andy Pan e01348e424 Fix a bug from the previous commit
Updates #141
2021-03-19 01:21:14 +08:00
Andy Pan 36c4272286 Fix a bug that blocks callers infinitely
Fixes #141
2021-03-18 21:42:54 +08:00
Andy Pan e45d13c630 Add user cases of ants 2021-03-18 20:38:17 +08:00
Andy Pan fd8d670fd0 Migrate CI from travis to Github actions 2021-02-18 15:01:42 +08:00
Andy Pan 92c43a7129 Update README 2021-01-30 18:17:54 +08:00
Z 94a7a7f1cb
fix: Memory leak (#114)
Fixes #113
2020-10-15 11:35:55 +08:00
thinkgo ef60172172
Avoid memory leak (#107) 2020-08-29 18:51:56 +08:00
Andy Pan 21f632368a Update comment 2020-08-21 14:08:49 +08:00
Andy Pan 001c8b5e1b Update READMEs and comments 2020-08-12 20:49:20 +08:00
Andy Pan 9577415c6d Add Gitter IM badge 2020-08-03 15:17:13 +08:00
Andy Pan 9d287009e8 Update READMEs 2020-08-02 15:56:16 +08:00
Andy Pan c32db55d3e Update READMEs 2020-08-02 10:31:00 +08:00
Andy Pan 32ee5efd59 Update READMEs 2020-08-01 10:57:04 +08:00
Andy Pan 60aec33d6f Add donors list 2020-07-31 16:33:04 +08:00
Andy Pan 2ae89b7931 Update gnet logo 2020-07-31 13:00:31 +08:00
Bo-Yi Wu 0a7be73d35
chore: support go1.14 (#100) 2020-07-19 22:59:47 +08:00
Andy Pan b266619975 Add .gitignore 2020-07-06 09:58:19 +08:00
Andy Pan 0cb499c7b8 Remove one trivial badge 2020-07-05 14:19:30 +08:00
Andy Pan 796f13af32 Add new badge for showing the latest tag 2020-07-05 00:09:00 +08:00
Andy Pan 678f39767e Upgrade golangci-lint and format some code 2020-07-05 00:04:47 +08:00
Andy Pan 4d9057a8d0 Renew relevant articles 2020-05-31 19:37:55 +08:00
Andy Pan a195593eb7 Update READMEs 2020-05-28 17:50:51 +08:00
Andy Pan ad86bfa6d2 Improve the unlimited pool
Updates #90
2020-05-27 22:26:39 +08:00
Andy Pan 1d11f39375 Add activity diagrams 2020-05-24 13:10:23 +08:00
Andy Pan 5057293d76 Renew go version 2020-05-11 18:34:34 +08:00
Andy Pan 1c534853c8 Support unlimited pool
Fixes #90
2020-05-08 23:24:26 +08:00
wreulicke 88b5a85d64
Fix indent on README (#89) 2020-04-29 15:08:43 +08:00
Andy Pan f33679bb79 Exclude golangci-lint from Windows 2020-04-08 18:44:28 +08:00
Andy Pan 7135fcafc8 Update READMEs 2020-04-08 13:24:17 +08:00
Andy Pan d55cc24a22 Fix code issues 2020-04-08 13:16:14 +08:00
Andy Pan 77a3da4040 Leverage reviewdog as automated code review tool 2020-04-08 12:47:55 +08:00
Andy Pan e507ae340f Support customized logger 2020-03-13 00:02:19 +08:00
Andy Pan ef20703b02 Add go1.14 support on CI 2020-02-28 11:04:55 +08:00