unb0rk akka-actor-nightly build
This means tightening types from Duration to FiniteDuration in several places; a good thing, since we replace runtime complaints by compile time errors.
This commit is contained in:
parent
4afd41f9c3
commit
251a62293a
34 changed files with 183 additions and 152 deletions
|
|
@ -6,6 +6,7 @@ package akka.pattern
|
|||
import akka.actor.Scheduler
|
||||
import scala.concurrent.ExecutionContext
|
||||
import java.util.concurrent.Callable
|
||||
import scala.concurrent.util.FiniteDuration
|
||||
|
||||
object Patterns {
|
||||
import akka.actor.{ ActorRef, ActorSystem }
|
||||
|
|
@ -103,7 +104,7 @@ object Patterns {
|
|||
* If the target actor isn't terminated within the timeout the [[scala.concurrent.Future]]
|
||||
* is completed with failure [[akka.pattern.AskTimeoutException]].
|
||||
*/
|
||||
def gracefulStop(target: ActorRef, timeout: Duration, system: ActorSystem): Future[java.lang.Boolean] =
|
||||
def gracefulStop(target: ActorRef, timeout: FiniteDuration, system: ActorSystem): Future[java.lang.Boolean] =
|
||||
scalaGracefulStop(target, timeout)(system).asInstanceOf[Future[java.lang.Boolean]]
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue