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

value:T

Available on python

read onlywrite onlyvalue:T

Available on hl, macro

value:T

Available on neko, jvm, cpp