Source File
default.go
Belonging Package
github.com/alitto/pond/v2
package pond// defaultPool is the default pool used by the package-level functions.var defaultPool = newPool(0, nil)// Submit submits a task to the default pool and returns a future that can be used to wait for the task to complete.func ( func()) Task {return defaultPool.Submit()}// SubmitErr submits a task to the default pool and returns a future that can be used to wait for the task to complete.func ( func() error) Task {return defaultPool.SubmitErr()}// NewGroup creates a new task group with the default pool.func () TaskGroup {return defaultPool.NewGroup()}// NewSubpool creates a new subpool with the default pool.func ( int) Pool {return defaultPool.NewSubpool()}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |