7 lines
139 B
Go
7 lines
139 B
Go
|
|
package worker
|
||
|
|
|
||
|
|
import "context"
|
||
|
|
|
||
|
|
// Task is a unit of work executed asynchronously by the pool.
|
||
|
|
type Task func(ctx context.Context) error
|