Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool slaves
func NewPool ¶
NewPool creates SlavePool.
if workers is 0 default workers will be created use workers var if you know what you are doing
func (*Pool) Serve ¶
func (p *Pool) Serve(w interface{})
Serve sends work to goroutine pool
If all slaves are busy this function will stop until any of this ends a task.
func (*Pool) ServeNonStop ¶
ServeNonStop returns true if work have been sended to the goroutine pool.
This function returns a state and does not block the workflow.
Click to show internal directories.
Click to hide internal directories.