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

rescala.core.Tracing.scala Maven / Gradle / Ivy

There is a newer version: 0.35.1
Show newest version
package rescala.core

object Tracing {

  case class ValueWrapper(v: Any)

  sealed trait Data
  case class Create(resource: ReSource, inputs: Set[ReSource]) extends Data
  case class Discover(source: ReSource, sink: ReSource)        extends Data
  case class Drop(source: ReSource, sink: ReSource)            extends Data
  case class Value(source: ReSource, value: ValueWrapper)      extends Data

  var observer: Data => Unit = null

  @inline def observe(data: => Data): Unit = if (observer != null) observer(data)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy