package
2.2.0+incompatible
Repository: https://github.com/ljkiraly/sdk.git
Documentation: pkg.go.dev

# README

Intro

ExtendedContext allows grafting two contexts together:

  • One for cancellation/timeout/deadline
  • One for Values

Uses

When retrying a GRPC call, the original timers may be either expired or too short, but the Values contained in the original context may still be relevant.

# Functions

WithBothValuesFromContext - creates a child context with the Values from both parent and values Contexts.
WithValuesFromContext - creates a child context with the Values from valuesContext rather than the parent.