Skip to content

Commit e1a9717

Browse files
committed
test(queue): add submitted task count
1 parent 367a680 commit e1a9717

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

queue_example_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func ExampleNewPool_queueTaskTimeout() {
9090

9191
fmt.Println("success task count:", q.SuccessTasks())
9292
fmt.Println("failure task count:", q.FailureTasks())
93+
fmt.Println("submitted task count:", q.SubmittedTasks())
9394

9495
// Unordered output:
9596
// index: 3
@@ -101,4 +102,5 @@ func ExampleNewPool_queueTaskTimeout() {
101102
// context deadline exceeded
102103
// success task count: 5
103104
// failure task count: 2
105+
// submitted task count: 7
104106
}

0 commit comments

Comments
 (0)