Documentation ¶
Overview ¶
Package worker provides background worker tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
Worker is a set of managed background go routines.
func (*Worker) Go ¶
func (w *Worker) Go(fn func())
Go excutes the function fn in a new Go routine. Multiple Go routines may be started under the same Worker. It is the function's responsibility to monitor the channel returned by `Worker.HaltCh()` and to return.
Click to show internal directories.
Click to hide internal directories.