# Functions
No description provided by the author
No description provided by the author
No description provided by the author
MergeContext create a cancellation context that cancels when any of the given contexts are canceled.
TenantID tries to retrieve tenantID from the given context.
TODO: use context.WithDeadlineCause instead in go 1.21.0, then deprecated this function !!! We cannot keep same implementation with context.WithDeadlineCause.
WithTenantID creates a new context that has tenantID injected.
TODO: use context.WithTimeoutCause instead in go 1.21.0, then deprecated this function !!! We cannot keep same implementation with context.WithDeadlineCause.