Documentation
¶
Overview ¶
Package runman provides manager that can run a bunch of Runner interface implementations concurrently. When one of the runners finishes, all other ones will be canceled via context. You can also cancel them all prematurely by canceling passed context.
Typical usage:
runman.New(runner1, runner2, runner3).Run(ctx)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager structure used to manage a list of runners. Note that it implements Runner interface too, so in theory you can feed one manager instance into another.
Click to show internal directories.
Click to hide internal directories.