Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoppableTask ¶
type StoppableTask struct {
// contains filtered or unexported fields
}
func Run ¶
func Run(f func(stop <-chan struct{})) *StoppableTask
func (*StoppableTask) Stop ¶
func (task *StoppableTask) Stop(timeout time.Duration)
Click to show internal directories.
Click to hide internal directories.