set

open fun set(value: T?)

Sets the current thread's copy of this thread-local variable to the specified value. Most subclasses will have no need to override this method, relying solely on the initialValue method to set the values of thread-locals.

Parameters

value

the value to be stored in the current thread's copy of this thread-local.