Note: GetTaskQueue()
returns a global variable which struct is
type TaskQueue struct {
ch chan int
wg *sync.WaitGroup
}
The channel is used to limit the number of goroutines, and the max number of goroutines is set to be 3.
My expectation is that all t
s should match the task
s. However, Dominium
and dApp Builder
did not show in t
, while EthicHub Twitter
and Apollo
duplicated.
The output is shown below.