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

de.sciss.fscape.stream.Node.scala Maven / Gradle / Ivy

package de.sciss.fscape
package stream

import akka.stream.stage.GraphStageLogic

trait Node {
  _: GraphStageLogic =>

  // ---- abstract ----

  implicit protected def control: Control

  def failAsync(ex: Exception): Unit

  // ---- impl ----

  control.addNode(this)

  override final def postStop(): Unit = {
    control.removeNode(this)
    stopped()
  }

  /** Subclasses can override this */
  protected def stopped(): Unit = ()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy