Thread_local_storageSourceThread local storage
A TLS key for values of type 'a. This allows the storage of a single value of type 'a per thread.
Allocate a new, generative key. When the key is used for the first time on a thread, the function is called to produce it.
This should only ever be called at toplevel to produce constants, do not use it in a loop.