threadpool
threadpool copied to clipboard
Golang simple thread pool implementation
Results
2
threadpool issues
Sort by
recently updated
recently updated
newest added
https://github.com/shettyh/threadpool/blob/b99fd8aaa9451aabc3d737e614c9a24a44d2a84c/threadpool.go#L15 Wouldn't it be simpler to just have workers pull jobs off the job queue instead of a double redirect / dispatch? (get job, find worker, queue job).
//TODO: need to check the existing /running task before closing the threadpool