summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorphaller <hallerp@gmail.com>2012-05-22 13:52:18 +0200
committerphaller <hallerp@gmail.com>2012-05-24 18:10:44 +0200
commit1dfce90246f7d334e34d110afb8b1517180995fc (patch)
treedf12cb3e8593622e88d46c4af7e5eb987c116e55 /lib
parente490b02476769310765a8d61da656b535d21c56e (diff)
downloadscala-1dfce90246f7d334e34d110afb8b1517180995fc.tar.gz
scala-1dfce90246f7d334e34d110afb8b1517180995fc.tar.bz2
scala-1dfce90246f7d334e34d110afb8b1517180995fc.zip
Move implicit ExecutionContext to be determined by lexical scope
Port of a pull request originally submitted by @havocp. - declare the invariant that all app callbacks have an associated ExecutionContext provided at the place the callback is passed to a method on Future - always run callbacks in their associated EC - since all callbacks have their own EC, Promise does not need one - "internal" callbacks don't need to defer execution either since we know the ultimate app callback will do so, therefore we can use an immediate executor for these
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions