=pro #3753 Override dependency versions from command line

This commit is contained in:
Björn Antonsson 2013-12-03 09:18:26 +01:00
parent 4d05253391
commit 00a268b6b3
9 changed files with 78 additions and 45 deletions

View file

@ -418,9 +418,10 @@ class FutureDocSpec extends AkkaSpec {
"demonstrate usage of pattern.after" in {
//#after
import akka.pattern.after
// TODO after is unfortunately shadowed by ScalaTest, fix as part of #3759
// import akka.pattern.after
val delayed = after(200 millis, using = system.scheduler)(Future.failed(
val delayed = akka.pattern.after(200 millis, using = system.scheduler)(Future.failed(
new IllegalStateException("OHNOES")))
val future = Future { Thread.sleep(1000); "foo" }
val result = Future firstCompletedOf Seq(future, delayed)