Documentation
¶
Overview ¶
Package scheduler implements a task scheduler.
Index ¶
Constants ¶
View Source
const (
// Unlimited represents the unlimited number of goroutines.
Unlimited = 0
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Threshold option represents the threshold at which batch task is enabled. // If the threshold option is greater than 1, tasks will be scheduled in batches. Threshold int // IdleTime option represents the max idle time of the worker. IdleTime time.Duration // Interval option represents the check interval of the worker. Interval time.Duration }
Options represents options
Click to show internal directories.
Click to hide internal directories.