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

scala.reactive.isolate.package.scala Maven / Gradle / Ivy

The newest version!
package scala.reactive






package object isolate {

  trait Looper[@spec(Int, Long, Double) T] extends Isolate[T] {
    val fallback: Signal[Option[T]]

    def initialize() {
      react <<= sysEvents onCase {
        case IsolateStarted | IsolateEmptyQueue => fallback() match {
          case Some(v) => later.enqueueIfEmpty(v)
          case None => channel.seal()
        }
      }
    }

    initialize()
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy