Commit Graph

50 Commits

Author SHA1 Message Date
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
Andy Pan 5326374a22 Auto stash before merge of "develop" and "origin/develop" 2018-05-24 23:43:34 +08:00
Andy Pan 0453f88168 update 2018-05-23 00:46:43 +08:00
Andy Pan 63ebcb38dd update go test and benchmarks test 2018-05-22 11:17:19 +08:00
andy pan 46acf38a82 correct the wrong errors package 2018-05-21 10:48:25 +08:00
Andy Pan 0244b2356f update MIT license info 2018-05-20 23:57:48 +08:00
Andy Pan f0c48f295b golint the codes 2018-05-20 21:41:32 +08:00
Andy Pan 301221be5d add all comments 2018-05-20 21:09:45 +08:00
Andy Pan 1ee8144272 add a new module of cleaning up goroutines 2018-05-20 18:57:11 +08:00
Andy Pan 2b0c0227b6 add the copyright of MIT license 2018-05-20 16:37:17 +08:00
Andy Pan d24d6020c3 optimization 2018-05-20 15:28:27 +08:00
Andy Pan 5b274e54b4 test 2018-05-20 11:51:14 +08:00
Andy Pan 798a61d175 optimize memory using 2018-05-20 03:35:31 +08:00
Andy Pan 91349c14bb use sync.Pool to recycle goroutines 2018-05-20 02:52:39 +08:00
Andy Pan a59f51fefd update 2018-05-20 01:38:50 +08:00
Andy Pan 0423264ffa use WaitGroup to wait all goroutines to exit 2018-05-19 19:51:33 +08:00
Andy Pan 0fd8ba8dae use the "container/list" to keep workers 2018-05-19 19:08:31 +08:00
Andy Pan 2929cede54 use sync.Pool 2018-05-19 18:24:36 +08:00
Andy Pan 0c7ba6d3ac optimization 2018-05-19 16:10:38 +08:00
Andy Pan 2f6f0de82b update go test 2018-05-19 15:22:14 +08:00
Andy Pan b7b2b27596 reuse workers 2018-05-19 12:57:01 +08:00
Andy Pan c7cac2be5f init proj 2018-05-19 12:28:03 +08:00
Andy Pan 7e9903d559 init proj 2018-05-19 09:15:54 +08:00