local

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTaskAlreadyPending = errors.New("a completion waiter is already pending for this task")

ErrTaskAlreadyPending rejects a second waiter without replacing the current registration. The rejected waiter owns no registry entry.

Functions

This section is empty.

Types

type TasksBackend

type TasksBackend struct {
	// contains filtered or unexported fields
}

func NewTasksBackend

func NewTasksBackend() *TasksBackend

func (*TasksBackend) CancelActivityTask

func (be *TasksBackend) CancelActivityTask(ctx context.Context, instanceID api.InstanceID, taskID int32) error

func (*TasksBackend) CancelWorkflowTask

func (be *TasksBackend) CancelWorkflowTask(ctx context.Context, instanceID api.InstanceID) error

func (*TasksBackend) CompleteActivityTask

func (be *TasksBackend) CompleteActivityTask(ctx context.Context, response *protos.ActivityResponse) error

func (*TasksBackend) CompleteWorkflowTask

func (be *TasksBackend) CompleteWorkflowTask(ctx context.Context, response *protos.WorkflowResponse) error

func (*TasksBackend) RegisterActivityCompletion added in v1.2.2

func (be *TasksBackend) RegisterActivityCompletion(request *protos.ActivityRequest) (func(context.Context) (*protos.ActivityResponse, error), error)

RegisterActivityCompletion reserves the completion key before work is dispatched.

func (*TasksBackend) RegisterWorkflowTaskCompletion added in v1.2.2

func (be *TasksBackend) RegisterWorkflowTaskCompletion(request *protos.WorkflowRequest) (func(context.Context) (*protos.WorkflowResponse, error), error)

RegisterWorkflowTaskCompletion reserves the completion key before work is dispatched.

func (*TasksBackend) WaitForActivityCompletion

func (be *TasksBackend) WaitForActivityCompletion(request *protos.ActivityRequest) func(context.Context) (*protos.ActivityResponse, error)

func (*TasksBackend) WaitForWorkflowTaskCompletion

func (be *TasksBackend) WaitForWorkflowTaskCompletion(request *protos.WorkflowRequest) func(context.Context) (*protos.WorkflowResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL