In a lot of old Akka examples you will see the following statements:
import akka.util.Timeout import akka.util.duration._ implicit val askTimeout = Timeout(1 second)
This will give error ‘object duration is not a member of package akka.util’. It turns out duration is now included in Scala standard library. To fix the error use the following import statement:
import scala.concurrent.duration._
Check out the migration guide for other pieces of Akka functionality that have moved to Scala.