context

package module
v0.0.0-...-9915072 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCancel

func WithCancel(cntx ctx.Context) (ctx.Context, ctx.CancelFunc)

func WithTimeout

func WithTimeout(cntx ctx.Context, timeout time.Duration) (ctx.Context, ctx.CancelFunc)

Types

type Context

type Context struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Context) Deadline

func (c *Context) Deadline() (deadline time.Time, ok bool)

func (*Context) Done

func (c *Context) Done() <-chan struct{}

func (*Context) Err

func (c *Context) Err() error

func (*Context) Value

func (c *Context) Value(key any) any

Jump to

Keyboard shortcuts

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