core icon indicating copy to clipboard operation
core copied to clipboard

Refactor pool

Open GGXXLL opened this issue 1 year ago • 1 comments

  • factory mode
  • sync function for test
  • work stealing mode, keep one goroutine pool
  • recycle goroutine with time or jobCount

GGXXLL avatar Jul 26 '22 03:07 GGXXLL

bonus:make nil value a valid pool, like sync.WaitGroup. (so that we don't have to inject it in tests)

Reasno avatar Jul 26 '22 04:07 Reasno