Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrScheduleTimeout happens when task schedule failed during the specific interval. ErrScheduleTimeout = errors.New("schedule not available currently") )
Functions ¶
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool caches tasks and schedule tasks to work.
func (*Pool) ScheduleWithTimeout ¶
ScheduleWithTimeout try to push a task on queue, if timeout, return false.
Click to show internal directories.
Click to hide internal directories.