Documentation ¶
Overview ¶
Package fantask provides concurrent tasks control through a shared execution context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelWithSignal ¶ added in v0.2.0
CancelWithSignal cancels the tasks execution context when any of the given signals is received. If no signals provided, all signals will be handled.
func IgnoreCanceled ¶
IgnoreCanceled returns nil on context.Canceled error. Errors are returned unmodified otherwise.
Types ¶
type Tasks ¶ added in v0.2.0
type Tasks struct {
// contains filtered or unexported fields
}
Tasks is a tasks controller.
Click to show internal directories.
Click to hide internal directories.