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

loci.runtime.Instance.scala Maven / Gradle / Ivy

The newest version!
package loci
package runtime

class Instance[P](
    val values: PlacedValues,
    val remoteConnections: RemoteConnections)
  extends language.Instance[P](0) {

  private val doTerminated = Notice.Steady[Unit]

  remoteConnections.terminated foreach { _ => doTerminated.trySet() }

  if (remoteConnections.isTerminated)
    doTerminated.trySet()

  def terminate(): Unit = remoteConnections.terminate()

  val terminated: Notice.Steady[Unit] = doTerminated.notice
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy