# Packages
No description provided by the author
# Functions
AmendID returns a data.ImmutableKeyValue containing string to add to task ID to be used as option on NewXXX functions that accept such options.
NewTask creates a new instance of Task.
NewTaskGroup ...
NewTaskGroupWithContext ...
NewTaskGroupWithParent ...
NewTaskWithContext creates an instance of Task with context.
NewTaskWithParent creates a subtask Such a task can be aborted if the parent one can be.
NewUnbreakableTask is a new task that cannot be aborted by default (but this can be changed with IgnoreAbortSignal(false)).
RootTask is the "task to rule them all".
TaskFromContext extracts the task instance from context returns: - Task, nil: Task found in 'ctx' - nil, *fail.ErrNotAvailable: there is no Task value in 'ctx' - nil, *fail.ErrInconsistent: value stored as Task in "ctx' is not of type Task - nil, *ErrInvalidParameter: 'ctx' is nil.
TaskFromContextOrVoid extracts the task instance from context.
VoidTask is a new task that do nothing.
# Variables
FailEarly tells the TaskGroup to fail as soon as a child fails.
FailLately tells the TaskGroup to end all children before determine if TaskGroup has failed.
No description provided by the author
# Interfaces
Task is the interface of a task running in goroutine, allowing to identity (indirectly) goroutines.
TaskCore is the interface of core methods to control Task and TaskGroup.
TaskGroup is the task group interface.
TaskGroupGuard is the task group interface defining method to wait the TaskGroup.
TaskGuard ...
TaskParameters ...
TaskResult ...
# Type aliases
TaskAction defines the type of the function that can be started by a Task.
TaskGroupResult is a map of the TaskResult of each task The index is the ID of the sub-Task running the action.
TaskStatus ...