contextext

package
v5.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detach

func Detach(parent context.Context) detachedContext

Detach returns a new context which continues to have access to its parent values but is no longer bound/attached to the parents timeouts nor deadlines.

If a nil context is passed in a new Background context will be used as the parent.

This is useful for when you wish to pass along values such as span or logging information but do not want the current operation to be cancelled despite what upstream code/callers think.

Types

This section is empty.

Jump to

Keyboard shortcuts

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