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

reactify.reaction.FunctionReaction.scala Maven / Gradle / Ivy

There is a newer version: 4.1.3
Show newest version
package reactify.reaction

case class FunctionReaction[T](f: T => Unit, override val priority: Double) extends Reaction[T] {
  override def apply(value: T, previous: Option[T]): ReactionStatus = {
    f(value)
    ReactionStatus.Continue
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy