cancellable

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	context.Context

	Cancel()
}

A Context with cancellation trait.

func NewContext

func NewContext() Context

NewContext returns an empty cancelable Context.

func NewContextWithParent

func NewContextWithParent(parent context.Context) Context

NewContextWithParent returns an empty cancelable Context with a parent.

Jump to

Keyboard shortcuts

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