Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultWorkerOptions = internal.DefaultOptions
Functions ¶
This section is empty.
Types ¶
type RegisterOption ¶ added in v0.17.0
type RegisterOption workflowinternal.RegisterOption
func WithName ¶ added in v0.17.0
func WithName(name string) RegisterOption
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) RegisterActivity ¶ added in v0.17.0
func (w *Worker) RegisterActivity(a workflow.Activity, opts ...RegisterOption) error
func (*Worker) RegisterWorkflow ¶ added in v0.17.0
func (w *Worker) RegisterWorkflow(wf workflow.Workflow, opts ...RegisterOption) error
func (*Worker) Start ¶
Start starts the worker.
To stop the worker, cancel the context passed to Start. To wait for completion of the active tasks, call `WaitForCompletion`.
func (*Worker) WaitForCompletion ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.