Documentation ¶
Overview ¶
Package queue gives you a queue group accessibility. Helps you to limit goroutines, wait for the end of the all goroutines and much more...
maxRoutines := 50 q := queue.New(maxRoutines) defer q.Close() for i := 0; i != 1000; i++ { q.Add() go func(c int) { defer q.Done() fmt.Println(c) }(i) } //wait for the end of the all jobs q.Wait()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.