canceller

package
v5.11.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package canceller provides a thread-safe registry for managing cancellation functions, allowing internal commands such as activities, timers, and child workflows to be canceled by their command ID.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancellable

type Cancellable func() error

type Canceller

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

func (*Canceller) Cancel

func (c *Canceller) Cancel(ids ...uint64) error

func (*Canceller) Discard

func (c *Canceller) Discard(id uint64)

func (*Canceller) Register

func (c *Canceller) Register(id uint64, cancel Cancellable)

Jump to

Keyboard shortcuts

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