Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // GoroutinePoolSize maximum number of running goroutine instances. GoroutinePoolSize int `yaml:"goroutinePoolSize" json:"goroutinePoolSize"` // Size size of queue. If it exhausted Submit returns error. Size int `yaml:"size" json:"size"` // MaxIdleTime sets up the interval time of cleaning up goroutines, 0 means never cleanup. MaxIdleTime time.Duration `yaml:"maxIdleTime" json:"maxIdleTime"` }
Config configuration for task queue.
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
SetDefaults set zero values to defautls.
Click to show internal directories.
Click to hide internal directories.