cancelable

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SleepCtx

func SleepCtx(ctx context.Context, duration time.Duration) error

Types

type Cancelable

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

func New

func New(pCtx context.Context, fn func(canc *Cancelable)) *Cancelable

func (*Cancelable) Cancel

func (c *Cancelable) Cancel(err error) bool

func (*Cancelable) Canceled

func (c *Cancelable) Canceled() bool

func (*Cancelable) Ctx

func (c *Cancelable) Ctx() context.Context

Jump to

Keyboard shortcuts

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