Documentation ¶
Index ¶
- func NewSubPool(priority Priority, pool *Pool)
- type Logic
- type Pool
- func (p *Pool) Close()
- func (p *Pool) LoadWaitCount() int64
- func (p *Pool) NewSubPool(priority Priority) *SubPool
- func (p *Pool) NewSubPoolWithFunc(priority Priority, logic Logic) *SubPool
- func (p *Pool) QueueCount() int64
- func (p *Pool) Run(sign chan os.Signal, low, normal, high chan poolQueue)
- func (p *Pool) Submit(priority Priority, i interface{})
- func (p *Pool) SubmitWait(priority Priority, i interface{})
- func (p *Pool) SubmitWithFunc(priority Priority, i interface{}, logic Logic)
- func (p *Pool) SubmitWithFuncWait(priority Priority, i interface{}, logic Logic)
- func (p *Pool) Wait()
- type Priority
- type SubPool
- func (p *SubPool) Close()
- func (p *SubPool) SetLogic(logic Logic)
- func (p *SubPool) Submit(i interface{})
- func (p *SubPool) SubmitWait(i interface{})
- func (p *SubPool) SubmitWithFunc(i interface{}, logic Logic)
- func (p *SubPool) SubmitWithFuncWait(i interface{}, logic Logic)
- func (p *SubPool) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSubPool ¶
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func NewPoolWithFunc ¶
func (*Pool) LoadWaitCount ¶
func (*Pool) NewSubPool ¶
func (*Pool) NewSubPoolWithFunc ¶
func (*Pool) QueueCount ¶
func (*Pool) SubmitWait ¶
func (*Pool) SubmitWithFunc ¶
func (*Pool) SubmitWithFuncWait ¶
type SubPool ¶
type SubPool struct {
// contains filtered or unexported fields
}
func NewSubPoolWithFunc ¶
func (*SubPool) SubmitWait ¶
func (p *SubPool) SubmitWait(i interface{})
func (*SubPool) SubmitWithFunc ¶
func (*SubPool) SubmitWithFuncWait ¶
Click to show internal directories.
Click to hide internal directories.