Pārlūkot izejas kodu

doc: Worke说明

2637309949@qq.com 5 gadi atpakaļ
vecāks
revīzija
25818a9c63
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      backend/goroutine.md

+ 2 - 0
backend/goroutine.md

@@ -78,6 +78,8 @@ func (d *Dispatcher) AddJob(j Job) {
 ```
 
 ## Worker
+作为消费者和生产者Worker,负责往w.WorkerPool添加worker以及w.JobChannel的接受功能.
+
 ```go
 // Worker represents the worker that executes the job
 type Worker struct {