Documentation
¶
Index ¶
- type Eventual
- type Func
- type Outcome
- type Processor
- type Queue
- type Result
- type Task
- type Worker
- func (w *Worker) ProcessAll()
- func (w *Worker) ProcessTryMultiple(count int) bool
- func (w *Worker) ProcessTrySingle() bool
- func (w *Worker) Queue(fn Func) Eventual
- func (w *Worker) Schedule(task Task) Outcome
- func (w *Worker) ScheduleFunc(fn func() error) Eventual
- func (w *Worker) Shutdown()
- func (w *Worker) Wait(task Task) Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Eventual ¶ added in v0.3.0
type Eventual struct {
// contains filtered or unexported fields
}
func FailedEventual ¶ added in v0.3.0
func ImmediateEventual ¶ added in v0.3.0
func NewCompositeEventual ¶ added in v0.3.0
func NewEventual ¶ added in v0.3.0
func SuccessfulEventual ¶ added in v0.3.0
func SuccessfulEventual() Eventual
type Outcome ¶
type Outcome struct {
// contains filtered or unexported fields
}
func NewCompositeOutcome ¶
func NewErrorOutcome ¶
func NewOutcome ¶
func NewOutcome() Outcome
func NewValueOutcome ¶
func NewValueOutcome(value interface{}) Outcome
func (Outcome) IsAvailable ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) ProcessAll ¶
func (w *Worker) ProcessAll()
func (*Worker) ProcessTryMultiple ¶
func (*Worker) ProcessTrySingle ¶
func (*Worker) ScheduleFunc ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.