Documentation
¶
Overview ¶
Package tls provides goroutine-local storage (thread-local storage). Values are keyed by their type and scoped to the current goroutine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clear ¶
func Clear[V any]()
Clear removes the value of the given type from the current goroutine's local storage. If no values remain for the goroutine, the entire store entry is cleaned up.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.