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

ru.primetalk.synapse.rx.package.scala Maven / Gradle / Ivy

Go to download

SynapseGrid is a framework for constructing reactive real-time immutable data flow systems. -core contains everything to run a single-threaded system, -akka contains everything to run systems over Akka actors, -slf4j - enables logging, -concurrent - running systems directly over ExecutorContext without the need for Akka, -examples - a few test systems. Also there are -frames - a framework for type construction with meta information (see relations.scala). -typed-expressions - a framework for defining parsers and generators for natural language. The current version is 1.4.0

There is a newer version: 1.4.7
Show newest version
///////////////////////////////////////////////////////////////
// © ООО «Праймтолк», 2011-2013                              //
// Все права принадлежат компании ООО «Праймтолк».           //
///////////////////////////////////////////////////////////////
/**
 * SynapseGrid
 * © Primetalk Ltd., 2013.
 * All rights reserved.
 * Authors: A.Zhizhelev, A.Nehaev
 *
 * Created: 06.12.13, zhizhelev
 */
package ru.primetalk.synapse

import _root_.rx.lang.scala.Observable
import _root_.rx.lang.scala.Subject
import core._

package object rx {

  implicit class RichContact[T](c: Contact[T])(implicit sb: BasicSystemBuilder) {

    import implicits._

    def toObservable: Observable[T] = {
      val rxOutput = Subject[T]()
      c.foreach(t => rxOutput.onNext(t))
      rxOutput
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy