Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*defaultWorkerPool)
func WithPanicHandler ¶
WithPanicHandler 允许用户自定义 panic 处理逻辑
type WorkerPool ¶
type WorkerPool interface {
Execute(task func())
Wait()
}
WorkerPool 控制并发任务的执行
func NewWorkerPool ¶
func NewWorkerPool(maxConcurrent uint, options ...Option) WorkerPool
Click to show internal directories.
Click to hide internal directories.