Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsumerFunc ¶
type WorkerBasic ¶
type WorkerBasic struct { CancelFunc context.CancelFunc // contains filtered or unexported fields }
func NewWorker ¶
func NewWorker(c ...ConsumerFunc) *WorkerBasic
func (*WorkerBasic) RegisterWorker ¶
func (w *WorkerBasic) RegisterWorker(c ...ConsumerFunc)
func (*WorkerBasic) Run ¶
func (w *WorkerBasic) Run() error
func (*WorkerBasic) Stop ¶
func (w *WorkerBasic) Stop() error
Click to show internal directories.
Click to hide internal directories.