carry

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package carry builds the context a run continues on when it runs on behalf of another one — a resume over a parked boundary, a deferred steer's follow-up, an async pool child: cancellation and deadline from one context, and, for the keys that context does not carry, the values of the context the work began on.

The values are what the core and its callers place on a run's context for the runs started inside it — the ParkAllExcept list in force, the metadata, the delegating tool call — and none of them has an exported copy helper, so the context keeps them whole: the origin is consulted only for a key the live context lacks, and its cancellation never reaches the result.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Values

func Values(live, origin context.Context) context.Context

Values returns a context that answers Deadline, Done and Err from live and Value from live first, then from origin. origin's cancellation does not reach it. A nil origin returns live itself.

Types

This section is empty.

Jump to

Keyboard shortcuts

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