package contextext
import "github.com/go-playground/pkg/v5/context"
Index ¶
Functions ¶
func Detach ¶
Detach returns a new context which continues to have access to its parent values but is no longer bound/attached to the parents timeouts nor deadlines.
If a nil context is passed in a new Background context will be used as the parent.
This is useful for when you wish to pass along values such as span or logging information but do not want the current operation to be cancelled despite what upstream code/callers think.
Source Files ¶
- Version
- v5.24.0
- Published
- Jan 21, 2024
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 35 minutes ago –
Tools for package owners.