diff options
-rw-r--r-- | src/main/scala/scala/async/FutureSystem.scala | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/scala/scala/async/FutureSystem.scala b/src/main/scala/scala/async/FutureSystem.scala index 64c5a66..738de34 100644 --- a/src/main/scala/scala/async/FutureSystem.scala +++ b/src/main/scala/scala/async/FutureSystem.scala @@ -82,11 +82,8 @@ object ScalaConcurrentFutureSystem extends FutureSystem { } def onComplete[A, U](future: Expr[Fut[A]], fun: Expr[scala.util.Try[A] => U], - execContext: Expr[ExecContext]): Expr[Unit] = { - reify { - future.splice.onComplete(fun.splice)(execContext.splice) - context.literalUnit.splice - } + execContext: Expr[ExecContext]): Expr[Unit] = reify { + future.splice.onComplete(fun.splice)(execContext.splice) } def completeProm[A](prom: Expr[Prom[A]], value: Expr[scala.util.Try[A]]): Expr[Unit] = reify { |