A thread-local storage to store per-thread values.

Constructor

new()

Creates thread local storage. This is placeholder that can store a value that will be different depending on the local thread.

It is good practice to set the value to null when the thread exits. Otherwise, it might not be garbage-collected on some targets.

Variables

read onlywrite onlyvalue:Null<T>

Available on hl

@:isVarvalue:Null<T>

Available on macro, cpp, neko, jvm, python