Skip to content

Commit d1a0d31

Browse files
committed
docs(example): update comments.
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 7af73e0 commit d1a0d31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_example/example01/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func main() {
1616
// initial queue pool
1717
q := queue.NewPool(5, queue.WithLogger(zerolog.New()))
1818
// shutdown the service and notify all the worker
19-
// wait all jobs are complete.
19+
// wait all jobs done.
2020
defer q.Release()
2121

2222
// assign tasks in queue

_example/example02/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func main() {
4040
return nil
4141
}))
4242
// shutdown the service and notify all the worker
43-
// wait all jobs are complete.
43+
// wait all jobs done.
4444
defer q.Release()
4545

4646
// assign tasks in queue
@@ -58,6 +58,6 @@ func main() {
5858
// wait until all tasks done
5959
for i := 0; i < taskN; i++ {
6060
fmt.Println("message:", <-rets)
61-
time.Sleep(50 * time.Millisecond)
61+
time.Sleep(20 * time.Millisecond)
6262
}
6363
}

0 commit comments

Comments
 (0)