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

akka.Done.scala Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2016 Lightbend Inc. 
 */
package akka

/**
 * Typically used together with `Future` to signal completion
 * but there is no actual value completed. More clearly signals intent
 * than `Unit` and is available both from Scala and Java (which `Unit` is not).
 */
sealed abstract class Done

case object Done extends Done {
  /**
   * Java API: the singleton instance
   */
  def getInstance(): Done = this
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy