ctx

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle struct {
	Ctx    context.Context
	Cancel func()
}

func Background

func Background() Handle

func FromContext added in v0.6.0

func FromContext(c context.Context) Handle

func WithCancel added in v0.5.0

func WithCancel(parent Handle) Handle

func WithDeadline added in v0.5.0

func WithDeadline(parent Handle, deadline time.Time) Handle

func WithTimeout

func WithTimeout(parent Handle, seconds int64) Handle

Jump to

Keyboard shortcuts

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