diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-07-30 15:41:12 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-07-30 15:41:12 +1000 |
commit | 5ee834d4fce81e25cfcc3ae770e3f1583d82d658 (patch) | |
tree | 7bfedd4f30b05bdba8905e83a87b2c6d926e3e5f /src/main/scala/scala/async/Async.scala | |
parent | a7a1e5b5e93724d7195ced9168f17e43438bff66 (diff) | |
parent | 7238bc1982cb1d87157c650115a2ae92a58430c9 (diff) | |
download | scala-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.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 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. |