

@deprecated("Suppress warnings", since="2.11")
object Test {
  import scala.actors.Futures
  def main(args: Array[String]) {
    try {
    for (i <- 1 to 100000) {
      Futures.alarm(0)
      if (i % 10000 == 0)
        println("OK")
    }
    for (_ <- 1 to 10) {
      val ft = Futures.alarm(100)
      ft()
      println("OK")
    }
    } catch {
      case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] =>
        e.printStackTrace()
    }
  }
}
