asynctx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package asynctx provides a mechanism to create derived contexts that can be used in an asynchronous setting.

These contexts will share the values of the original context, but not Deadline, Error or Done.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(parent context.Context) context.Context

From returns a new derived context that can be safely used in asynchronous operations that have a different lifetime than the original.

Functionally, it preserves the behavior of the parent context's Value, but its Deadline, Done, and Error methods behave like those of context.Background.

Types

This section is empty.

Jump to

Keyboard shortcuts

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