Documentation ¶
Index ¶
- type Worker
- func (w *Worker) IsBusy() bool
- func (w *Worker) KillTask(id string) error
- func (w *Worker) Publish(task queue.Task, callback ...queue.Finalizer) bool
- func (w *Worker) PublishSync(task queue.Task, callback ...queue.Finalizer) error
- func (w *Worker) PublishSyncTimeout(task queue.Task, timeout time.Duration, callback ...queue.Finalizer) error
- func (w *Worker) Run()
- func (w *Worker) SetQueue(q queue.Queue)
- func (w *Worker) Stop()
- func (w *Worker) Wait(timeout ...time.Duration)
- func (w *Worker) Working() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) PublishSync ¶
func (*Worker) PublishSyncTimeout ¶
Click to show internal directories.
Click to hide internal directories.