The classic threading utility: have variables that have a value for each thread.
See https://discuss.ocaml.org/t/a-hack-to-implement-efficient-tls-thread-local-storage/13264 for the initial implementation by @polytypic.
MIT