context

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Background

func Background() context.Context

Types

type Context

type Context struct {
	Parent     context.Context
	Ctx        context.Context
	CancelFunc context.CancelFunc
}

func WithCancel

func WithCancel(parent context.Context) *Context

func WithDeadline

func WithDeadline(parent context.Context, deadline time.Time) *Context

func WithTimeout

func WithTimeout(parent context.Context, timeout time.Duration) *Context

func (*Context) Cancel

func (c *Context) Cancel()

func (*Context) Wait

func (c *Context) Wait()

Jump to

Keyboard shortcuts

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