Skip to content

threadlocal

1 Post

ThreadLocal Goes Missing Inside StructuredTaskScope

A ThreadLocal that worked fine in a thread pool returns null the moment a virtual thread forks a subtask. Here's the mechanism, and what actually fixes it.