
scala.async.internal.AsyncUtils.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-async_2.11.0-RC3 Show documentation
Show all versions of scala-async_2.11.0-RC3 Show documentation
An asynchronous programming facility for Scala that offers a direct API for working with Futures.
The newest version!
/*
* Copyright (C) 2012-2014 Typesafe Inc.
*/
package scala.async.internal
object AsyncUtils {
private def enabled(level: String) = sys.props.getOrElse(s"scala.async.$level", "false").equalsIgnoreCase("true")
private def verbose = enabled("debug")
private def trace = enabled("trace")
private[async] def vprintln(s: => Any): Unit = if (verbose) println(s"[async] $s")
private[async] def trace(s: => Any): Unit = if (trace) println(s"[async] $s")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy