phaller/scala-dev — Issue #4: Support for task-local data via DynamicVars
Author: phaller
Created: 2011-11-26 17:38:22+00:00
State: open

Plain Java ThreadLocals can't be used with non-blocking tasks, since tasks may execute their continuation on a different thread. An idea would be to extend Scala's DynamicVar such that it can be used together with execution contexts to provide a safe alternative suitable for non-blocking tasks.