canceller

package
v2.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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