aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/scala/async/Async.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-07-30 15:54:22 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-07-30 15:54:22 +1000
commitb295d74433a7f4372995e034de305be5608d5ddf (patch)
tree572cd403c5e8aac7b1010f6d472e700558331ceb /src/main/scala/scala/async/Async.scala
parenta82fa0e95e3fba6eb1aee03080471097f69a33a8 (diff)
parentf9e170e3187f83c5d00e9ea8128fe2edf2bd371c (diff)
downloadscala-async-b295d74433a7f4372995e034de305be5608d5ddf.tar.gz
scala-async-b295d74433a7f4372995e034de305be5608d5ddf.tar.bz2
scala-async-b295d74433a7f4372995e034de305be5608d5ddf.zip
Merge pull request #133 from retronym/backport/1502.10.x
Backport fix for #150 to 2.10.x
Diffstat (limited to 'src/main/scala/scala/async/Async.scala')
-rw-r--r--src/main/scala/scala/async/Async.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/scala/async/Async.scala b/src/main/scala/scala/async/Async.scala
index 17a63a4..5e2d62d 100644
--- a/src/main/scala/scala/async/Async.scala
+++ b/src/main/scala/scala/async/Async.scala
@@ -42,7 +42,7 @@ object Async {
* Run the block of code `body` asynchronously. `body` may contain calls to `await` when the results of
* a `Future` are needed; this is translated into non-blocking code.
*/
- def async[T](body: T)(implicit execContext: ExecutionContext): Future[T] = macro internal.ScalaConcurrentAsync.asyncImpl[T]
+ def async[T](body: => T)(implicit execContext: ExecutionContext): Future[T] = macro internal.ScalaConcurrentAsync.asyncImpl[T]
/**
* Non-blocking await the on result of `awaitable`. This may only be used directly within an enclosing `async` block.