Alias for set(v: T)
Returns a Box containing the value of this ThreadGlobal in a null-safe fashion.
Returns a Box containing the value of this ThreadGlobal in a null-safe fashion.
Sets this ThreadGlobal's contents to the specified value, executes the specified function, and then restores the ThreadGlobal to its earlier value.
Sets this ThreadGlobal's contents to the specified value, executes the specified function, and then restores the ThreadGlobal to its earlier value. This effectively creates a scope within the execution of the current thread for the execution of the specified function.
the value to temporarily set in this ThreadGlobal
the function to execute
Sets the value of this ThreadGlobal.
Returns the current value of this variable.
Returns the current value of this variable.
A Thread-global containing the current Req. Set very, very early