aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/scala/async/Async.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-07-30 15:41:12 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-07-30 15:41:12 +1000
commit5ee834d4fce81e25cfcc3ae770e3f1583d82d658 (patch)
tree7bfedd4f30b05bdba8905e83a87b2c6d926e3e5f /src/main/scala/scala/async/Async.scala
parenta7a1e5b5e93724d7195ced9168f17e43438bff66 (diff)
parent7238bc1982cb1d87157c650115a2ae92a58430c9 (diff)
downloadscala-async-5ee834d4fce81e25cfcc3ae770e3f1583d82d658.tar.gz
scala-async-5ee834d4fce81e25cfcc3ae770e3f1583d82d658.tar.bz2
scala-async-5ee834d4fce81e25cfcc3ae770e3f1583d82d658.zip
Merge pull request #132 from retronym/ticket/105
Avoid dead code warnings for users of async.
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 bacf70a..0bba6ed 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.