com.themillhousegroup.scoup.options.Waits.scala Maven / Gradle / Ivy
package com.themillhousegroup.scoup.options
import scala.concurrent.duration.Duration
object Waits {
val FifteenSeconds = new Wait(15)
val ThirtySeconds = new Wait(30)
val SixtySeconds = new Wait(60)
}
class Wait(val inSeconds: Int) {
lazy val duration = Duration(inSeconds, "seconds")
lazy val inMillis: Int = inSeconds * 1000
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy