#2292 - Removing akka.util.Duration etc and replace it with scala.concurrent.util.Duration
This commit is contained in:
parent
4f1caeefd4
commit
54a3a44bf8
200 changed files with 347 additions and 854 deletions
|
|
@ -9,15 +9,15 @@ import language.postfixOps
|
|||
import akka.testkit.AkkaSpec
|
||||
import akka.actor.Props
|
||||
import akka.actor.Actor
|
||||
import akka.util.Duration
|
||||
import akka.util.duration._
|
||||
import scala.concurrent.util.Duration
|
||||
import scala.concurrent.util.duration._
|
||||
import akka.dispatch.{ Future, Promise, Await }
|
||||
|
||||
object PatternSpec {
|
||||
case class Work(duration: Duration)
|
||||
class TargetActor extends Actor {
|
||||
def receive = {
|
||||
case Work(duration) ⇒ duration.sleep()
|
||||
case Work(duration) ⇒ Thread.sleep(duration.toMillis)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue