package
Version:
v0.0.0-...-20bc30d
Opens a new window with list of versions in this module.
Published: Oct 19, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package task provides a pool of goroutines to perform tasks.
Task provides a pool of goroutines that can execute any Worker
tasks that are submitted.
New creates a new work pool.
Do submits work to the pool.
func (t *Task) Shutdown()
Shutdown waits for all the goroutines to shutdown.
type Worker interface {
Work()
}
Worker must be implemented by types that want to use
the run pool.
Source Files
¶
Directories
¶
This sample program demonstrates how to use the work package to use a pool of goroutines to get work done.
|
This sample program demonstrates how to use the work package to use a pool of goroutines to get work done. |
Click to show internal directories.
Click to hide internal directories.