Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTaskTimedOut the task didn't complete within the specified time limit ErrTaskTimedOut = errors.New("task timed out") )
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block provides a wait mechanic based on whether a task is done
type InOrder ¶
type InOrder struct {
Timeout time.Duration
Done chan *Result
// contains filtered or unexported fields
}
InOrder maintains the order of enqueued jobs
Click to show internal directories.
Click to hide internal directories.