optimization

This commit is contained in:
andy pan 2018-05-30 12:37:13 +08:00
parent d9363d36ec
commit 92a7dec196
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ func (w *Worker) run() {
// stop this worker.
func (w *Worker) stop() {
w.task <- nil
w.sendTask(nil)
}
// sendTask sends a task to this worker.

View File

@ -55,7 +55,7 @@ func (w *WorkerWithFunc) run() {
// stop this worker.
func (w *WorkerWithFunc) stop() {
w.args <- nil
w.sendTask(nil)
}
// sendTask sends a task to this worker.