package
0.3.0
Repository: https://github.com/elastic/go-concert.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

FromCanceller creates a new context from a canceller.
FromChannel creates a new context from a channel.
MergeCancellation creates a new context that will be cancelled if one of the two input contexts gets canceled.
MergeContexts merges cancellation and values of 2 contexts.
MergeDeadline merges the deadline of two contexts.
MergeValues merges the values from ctx and overwrites.
WithCancelContext creates a new CancelContext similar to `context.WithCancel`.
WithChannel creates a context that is cancelled if the parent context is cancelled or if the given channel is closed.
WithFunc creates a context that will execute the given function when the parent context gets cancelled.
WrapCancel creates a CancelContext from an existing context and the associated cancel function.

# Structs

AutoCancel collects cancel functions to be executed at the end of the function scope.
CancelContext holds a context with its corresponding CancelFunc.