Documentation ¶
Index ¶
- Variables
- type Option
- type Options
- type Pool
- func (p *Pool) ActiveWorkerNum() int64
- func (p *Pool) FailedTotal() uint64
- func (p *Pool) HandleTotal() uint64
- func (p *Pool) PendingTaskTotal() int64
- func (p *Pool) QueueLength() int64
- func (p *Pool) Submit(task func()) error
- func (p *Pool) SubmitTimeout(timeout time.Duration, task func()) error
- func (p *Pool) SuccessTotal() uint64
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *Options)
func WithMaxIdleTimeoutSeconds ¶ added in v1.3.0
func WithPanicHandler ¶
func WithPanicHandler(panicHandler func(err interface{})) Option
WithPanicHandler set panicHandler
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool goroutine pool
func (*Pool) ActiveWorkerNum ¶
ActiveWorkerNum get active worker number
func (*Pool) PendingTaskTotal ¶ added in v1.1.16
PendingTaskTotal get pending task num
func (*Pool) SubmitTimeout ¶
SubmitTimeout _
Click to show internal directories.
Click to hide internal directories.