72 Commits

Author SHA1 Message Date
Andy Pan
9a1446b823
opt: streamline pool implementation to reduce duplicated code (#350)
Also, bump up the minimal required Go version from 1.16 to 1.18.
2025-01-12 13:55:38 +08:00
Andy Pan
4f33c6ef27
feat: export the internal package sync (#349) 2025-01-12 10:38:09 +08:00
Andy Pan
df029e6411 opt: bump up the minimum required Go version to 1.16 2024-12-11 21:40:18 +08:00
Andy Pan
1933478e2e chore: remove the unused constant of releaseTimeoutCount 2024-06-18 01:09:42 +08:00
Andy Pan
3ffd3daa37
opt: calculate the interval for ReleaseTimeout() based on a default count (#327)
This PR reverts #325 to some extent.
2024-06-17 20:13:15 +08:00
Andy Pan
0d650f5c1e
opt: increase the interval of waiting in ReleaseTimeout() (#325) 2024-06-17 18:21:01 +08:00
Andy Pan
19bd1ea02b
feat: add MultiPool and MultiPoolWithFunc (#305) 2023-11-21 11:53:46 +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
Zhanghuixian Luo
bca5b3a7d6
bug: fix the missing log.Lmsgprefix in go1.13 (#275)
Fixes #274
---------

Co-authored-by: Andy Pan <panjf2000@gmail.com>
2023-05-11 10:05:22 +08:00
Andy Pan
3110e41921 chore: reformat the default log string 2023-03-23 14:40:49 +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
b4dedcd523 ci: refine the Github action workflows 2022-11-20 11:23:35 +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
fdb318c1d7 Remove the unused error type and update some comments 2021-11-24 00:42:50 +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
21f632368a Update comment 2020-08-21 14:08:49 +08:00
Andy Pan
ad86bfa6d2 Improve the unlimited pool
Updates #90
2020-05-27 22:26:39 +08:00
Andy Pan
d55cc24a22 Fix code issues 2020-04-08 13:16:14 +08:00
Andy Pan
e507ae340f Support customized logger 2020-03-13 00:02:19 +08:00
Andy Pan
d32d668565 Add a feature of rebooting a released pool 2020-01-16 23:45:15 +08:00
Andy Pan
d3e44612e2 Fix typos 2020-01-09 17:32:40 +08:00
Andy Pan
5ecbdf4bf2 Make optimization to Pool and PoolWithFunc struct 2019-10-10 22:28:21 +08:00
Andy Pan
b0ec5102cc Refactoring 2019-10-04 11:24:13 +08:00
Andy Pan
201ac20358 Add functional options pattern for ants 2019-08-25 14:14:18 +08:00
Andy Pan
1c767b45a1 🦖Fit in the new Pool.Release() method 2019-08-25 14:14:18 +08:00
Cholerae Hu
444711e79f support nonblocking submit and max blocking limit setting
Signed-off-by: Cholerae Hu <choleraehyq@gmail.com>
2019-08-25 14:14:18 +08:00
Andy Pan
05e96abd61 🍑 Do gofmt 2019-04-23 20:33:34 +08:00
Sarath Sadasivan Pillai
dec0401083 goreport: lint warning on code comment structure
Added a newline between group comment and exported variable line 😄
2019-04-23 19:11:56 +08:00
Andy Pan
00294fd50b 😏 Optimization of the structure and style 2019-04-14 11:08:06 +08:00
Andy Pan
e9f5d0c06f 🍹 Reduce the threshold time of cleaning up goroutines 2019-02-22 23:25:35 +08:00
Andy Pan
6cf3ef96e6 🐉 Adapt ants for explicit functions 2019-02-02 10:36:40 +08:00
Andy Pan
a6a76fa753 🐒 Comments Enrichment 2019-01-31 23:58:38 +08:00
Andy Pan
530fdbb4e0 🥶 Glorify go in the light of golint tool 2019-01-31 23:07:38 +08:00
Andy Pan
1f2eaecfd8 🥶 Glorify go in the light of golint tool 2019-01-31 23:06:39 +08:00
Andy Pan
b4c12aaf7e 🦋 Ignore potential error returned by pool.Release() explicitly 2019-01-27 02:30:15 +08:00
Andy Pan
b091435432 🐲 An optimization in worker channel 2019-01-26 14:32:12 +08:00
Andy Pan
089a7321ef 🚀 Update the comment about error types 2019-01-25 21:54:44 +08:00
Andy Pan
6ba16371e6 update periodic time of cleaning workers 2018-08-31 23:34:06 +08:00
Andy Pan
7a2f4e4681 add more comments 2018-08-04 11:12:06 +08:00
Andy Pan
7f82498abc update default settings of pool 2018-08-04 10:49:15 +08:00
Andy Pan
76cc065dbc optimization 2018-08-04 10:36:30 +08:00
Andy Pan
87b15034c5 optimization for default pool 2018-08-04 09:42:25 +08:00
Andy Pan
9af581c867 optimization for default pool 2018-08-04 09:29:53 +08:00
Andy Pan
020959a1d5 rename some symbol 2018-08-04 09:17:21 +08:00
Andy Pan
c4a50a1867 optimization for pool 2018-07-13 00:11:42 +08:00
Andy Pan
2e7d823141 optimization for timed task to clear idle workers 2018-07-08 10:29:12 +08:00
Andy Pan
6da1112dff gofmt 2018-07-06 20:24:47 +08:00
andy pan
93533b243b remove unused imports 2018-07-06 14:45:35 +08:00
andy pan
56943d78d5 add expired time for pool 2018-07-06 14:33:53 +08:00
andy pan
bd3ca2489e remove useless codes 2018-07-06 14:32:19 +08:00