cancel

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracker

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

func NewTracker

func NewTracker() *Tracker

func (*Tracker) Cancel

func (t *Tracker) Cancel(requestID string)

Cancel cancels the context for the given request ID.

func (*Tracker) Complete

func (t *Tracker) Complete(requestID string)

Complete removes tracking for the given request ID and releases resources.

func (*Tracker) IsCancelled

func (t *Tracker) IsCancelled(requestID string) bool

IsCancelled checks if a request is being tracked (for backward compat).

func (*Tracker) TrackCallWithContext

func (t *Tracker) TrackCallWithContext(parent context.Context, requestID string) (context.Context, string)

TrackCallWithContext creates a cancellable child context for the given request ID.

Jump to

Keyboard shortcuts

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