我試圖阻止噴霧可以用下面的代碼的Web服務器:AskTimeoutException:噴霧罐服務器上停止
implicit val timeout = Timeout(10 seconds)
val future = ask(IO(Http)(system), Http.Unbind(10 second))
Await.result(future, Duration.Inf)
,但可惜的是,我收到以下異常:
[錯誤] AskTimeoutException::Timed out(AskSupport.scala:334) [error] akka.pattern.PromiseActorRef $$ anonfun $ 1.apply $ mcV $ sp(AskSupport.scala:334) [error] akka.actor.Scheduler $$ anon $ 11.run(Scheduler.scala:118)[error] akka.actor.LightAr rayRevolverScheduler $ TaskHolder.executeTask(Scheduler.scala:455) [錯誤] akka.actor.LightArrayRevolverScheduler $$匿名$ 12.executeBucket $ 1(Scheduler.scala:407) [錯誤] akka.actor.LightArrayRevolverScheduler $$匿名$ 12 .nextTick(Scheduler.scala:411) [錯誤] akka.actor.LightArrayRevolverScheduler $$不久$ 12.run(Scheduler.scala:363)
我在做什麼錯?
它的工作!非常感謝你。 –