Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct { Burst int32 TaskFunc TaskHandler // contains filtered or unexported fields }
func New ¶
func New(burst int32, taskFunc TaskHandler) *Pool
type TaskHandler ¶
type TaskHandler func(task interface{}) error
Click to show internal directories.
Click to hide internal directories.