canceller

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

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