All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.themillhousegroup.scoup.options.Waits.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
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