contexts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package contexts provides utilities for working with Go contexts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeCancel

func MergeCancel(parent, other context.Context) (context.Context, context.CancelCauseFunc)

MergeCancel returns a context that contains the values of parent and is canceled when either parent or other is canceled.

If parent is canceled, the returned context is canceled with the parent's cause. If other is canceled, the returned context is canceled with the other's cause.

Types

This section is empty.

Jump to

Keyboard shortcuts

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