Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWorkers = 1000 DefaultIdleTimeout = 60 * time.Second )
Variables ¶
View Source
var GlobalConfig = Configure()
Functions ¶
func CloseAndWait ¶
func CloseAndWait()
Types ¶
type Config ¶
type Config struct {
Ctx context.Context
Concurrent int
IdleTimeout time.Duration
// RecoverFunc execute after recover a panic
RecoverFunc func(r interface{})
}
func (*Config) WithRecoverFunc ¶
Click to show internal directories.
Click to hide internal directories.