Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement worker execution and task handling
- In pool.go, added a call to the worker's run method after submitting a task to it in the Submit method. - In worker.go, implemented the run method for the Worker struct. This method starts a goroutine that continuously receives tasks from the worker's task channel, executes them, pushes the worker back to the pool, and decrements the pool's running count. Signed-off-by: Daniel Hu <tao.hu@merico.dev>
- Loading branch information