Documentation
¶
Overview ¶
Package task implements async task handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager interface {
// Run runs the task in its own goroutine.
Run(Task)
// Shutdown instructs all the tasks to shutdown and waits until they've done
// so.
Shutdown()
// contains filtered or unexported methods
}
Manager implements a task manager.
func FromContext ¶
FromContext returns the Manager ctx carries. It panics in case ctx carries no Manager.
Click to show internal directories.
Click to hide internal directories.