diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-07-30 15:54:22 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-07-30 15:54:22 +1000 |
commit | b295d74433a7f4372995e034de305be5608d5ddf (patch) | |
tree | 572cd403c5e8aac7b1010f6d472e700558331ceb /src/main/scala/scala/async/Async.scala | |
parent | a82fa0e95e3fba6eb1aee03080471097f69a33a8 (diff) | |
parent | f9e170e3187f83c5d00e9ea8128fe2edf2bd371c (diff) | |
download | scala-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.scala | 2 |
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. |