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

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

The newest version!
package java.util.concurrent

class CountDownLatch(var count: Int) {

  def await() = ()

  //def boolean await(long timeout, TimeUnit unit)

  def countDown(): Unit = count -= 1

  def getCount(): Long = count.toLong

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy