phaller / scala-dev

The Scala Programming Language: Virtualized
http://www.scala-lang.org/
2 stars 0 forks source link

Support for task-local data via DynamicVariables #4

Open phaller opened 12 years ago

phaller commented 12 years ago

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 DynamicVariable such that it can be used together with execution contexts to provide a safe alternative suitable for non-blocking tasks.