contextx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package contextx provides context helpers. ValueOnlyFrom lets an asynchronous task inherit a parent's values (trace id, metadata, ...) without inheriting its cancellation or deadline, so a finished request does not abort the task.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueOnlyFrom

func ValueOnlyFrom(ctx context.Context) context.Context

ValueOnlyFrom returns a context carrying only ctx's values, dropping its deadline, cancellation and error propagation. It delegates to the standard library's context.WithoutCancel (Go 1.21+), which has identical semantics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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