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

java.util.concurrent.CountDownLatch.scala Maven / Gradle / Ivy

There is a newer version: 2.2.6.3
Show newest version
package java.util.concurrent

class CountDownLatch(var count: Int) {

  def await() = ()

  //this could be risky
  def await(timeout: Long, unit: TimeUnit) = true

  def countDown(): Unit = count -= 1

  def getCount(): Long = count.toLong

  override def toString(): String = s"$count"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy