diff options
Diffstat (limited to 'src/async')
-rw-r--r-- | src/async/library/scala/async/Async.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/async/library/scala/async/Async.scala b/src/async/library/scala/async/Async.scala index 6f44925..9466df5 100644 --- a/src/async/library/scala/async/Async.scala +++ b/src/async/library/scala/async/Async.scala @@ -89,11 +89,11 @@ object Async extends AsyncUtils { reify { val result = Promise[T]() var state = 0 - - c.Expr(Block( - localVarTrees :+ resumeFunTree, - Apply(Ident(newTermName("resume")), List()))).splice - + future { + c.Expr(Block( + localVarTrees :+ resumeFunTree, + Apply(Ident(newTermName("resume")), List()))).splice + } result.future } |