Will always infer type as Any, so should explicitly state it.
This commit is contained in:
parent
c7444193e6
commit
2d2bdeec7a
1 changed files with 2 additions and 2 deletions
|
|
@ -291,8 +291,8 @@ object Future {
|
|||
*
|
||||
* The Delimited Continuations compiler plugin must be enabled in order to use this method.
|
||||
*/
|
||||
def flow[A](body: => A @cps[Future[A]], timeout: Long = Actor.TIMEOUT): Future[A] =
|
||||
reset(new DefaultCompletableFuture[A](timeout).completeWithResult(body))
|
||||
def flow(body: => Any @cps[Future[Any]], timeout: Long = Actor.TIMEOUT): Future[Any] =
|
||||
reset(new DefaultCompletableFuture[Any](timeout).completeWithResult(body))
|
||||
|
||||
private[akka] val callbacksPendingExecution = new ThreadLocal[Option[Stack[() => Unit]]]() {
|
||||
override def initialValue = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue