Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkPool ¶
type WorkPool struct {
// contains filtered or unexported fields
}
WorkPool serves incoming connections via a pool of workers
func (*WorkPool) Do ¶
func (p *WorkPool) Do(fn TaskHandler)
Do Add to the workpool and return immediately
func (*WorkPool) DoWait ¶
func (p *WorkPool) DoWait(task TaskHandler)
DoWait Add to the workpool and wait for execution to complete before returning
func (*WorkPool) SetTimeout ¶
SetTimeout Setting timeout time
Click to show internal directories.
Click to hide internal directories.