contextx

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() (Context, CancelFunc)

func WithCancel

func WithCancel(parent context.Context) (Context, CancelFunc)

func WithSignal

func WithSignal(sig ...os.Signal) (Context, CancelFunc)

Types

type CancelFunc

type CancelFunc context.CancelFunc

type Context

type Context interface {
	context.Context
	Go(func(ctx context.Context) error)
	Wait() error
}

func Background

func Background() Context

func TODO

func TODO() Context

Jump to

Keyboard shortcuts

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