Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task[I any, O any] interface { // Run will be called by workers (usually) // it will receive context, a input (usually output from previous task) // should always return a O and error Run(context.Context, I, map[string]interface{}, string) (O, error) }
Task performs a simple action. Usually only one action.
Click to show internal directories.
Click to hide internal directories.