aboutsummaryrefslogtreecommitdiff
path: root/pending/run
diff options
context:
space:
mode:
authorphaller <hallerp@gmail.com>2012-11-26 17:28:51 +0100
committerphaller <hallerp@gmail.com>2012-11-26 23:26:16 +0100
commit9ea2cc44e98c110843780aef09c7d1a695458be3 (patch)
tree3b7eb7ad3c8e6b983675a020d1f4fe7edb72bdca /pending/run
parent3fd51865dfcb6121f84145f4504abd0f80bf6cca (diff)
downloadscala-async-9ea2cc44e98c110843780aef09c7d1a695458be3.tar.gz
scala-async-9ea2cc44e98c110843780aef09c7d1a695458be3.tar.bz2
scala-async-9ea2cc44e98c110843780aef09c7d1a695458be3.zip
Fix #42 - Futures created by async are not properly completed with exceptions
This augments the on-complete handler for an async state with await as follows: if (tr.isFailure) result$async.complete(tr.asInstanceOf[Try[T]]) else { <resultName> = tr.get.asInstanceOf[<resultType>] <nextState> <mkResumeApply> }
Diffstat (limited to 'pending/run')
0 files changed, 0 insertions, 0 deletions