context

package
v2.3.73 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextCancel

type ContextCancel = Pair[context.CancelFunc, context.Context]

ContextCancel represents a pair of a cancel function and a context. It is used in operations that create new contexts with cancellation capabilities.

The first element is the CancelFunc that should be called to release resources. The second element is the new Context that was created.

func NopCancel

func NopCancel(ctx context.Context) ContextCancel

type Kleisli

type Kleisli[A, B any] = func(A) Reader[B]

func WithValue

func WithValue[A, K any](key K) Kleisli[A, context.Context]

type Pair

type Pair[A, B any] = pair.Pair[A, B]

Pair represents a tuple of two values of types A and B. It is used to group two related values together.

type Reader

type Reader[A any] = func(context.Context) A

Jump to

Keyboard shortcuts

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