class Trigger extends Channel[Unit]
Trigger is a convenience class wrapping Channel[Unit]
specifically for scenarios where the value doesn't matter,
just the reactions themselves.
- Alphabetic
- By Inheritance
- Trigger
- Channel
- Mutable
- Reactive
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Trigger()
Value Members
- def !(future: Future[Unit])(implicit ec: ExecutionContext): Future[Unit]
Convenience functionality to assign the result of a future (upon completion) to this Channel
Convenience functionality to assign the result of a future (upon completion) to this Channel
- Definition Classes
- Mutable
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def &(that: Channel[Unit]): Channel[Unit]
Group multiple channels together
Group multiple channels together
- Definition Classes
- Channel
- def :=(f: => Unit): Unit
Convenience alternative to "set"
Convenience alternative to "set"
- Definition Classes
- Mutable
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def @=(f: Unit): Unit
Convenience alternative to "static"
Convenience alternative to "static"
- Definition Classes
- Mutable
- def and(that: Channel[Unit]): Channel[Unit]
Group multiple channels together
Group multiple channels together
- Definition Classes
- Channel
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attach(f: (Unit) => Unit, priority: Double = Priority.Normal): Reaction[Unit]
Convenience method to create a Reaction to attach to this Reactive
Convenience method to create a Reaction to attach to this Reactive
- f
the function reaction
- priority
the priority in comparison to other reactions (Defaults to Priority.Normal)
- returns
created Reaction[T]
- Definition Classes
- Reactive
- def changes(f: (Unit, Unit) => Unit, priority: Double = Priority.Normal): Reaction[Unit]
Convenience method to create a Reaction to monitor changes to this Reactive
Convenience method to create a Reaction to monitor changes to this Reactive
- f
the function reaction to receive changes
- priority
the priority in comparison to other reactions (Defaults to Priority.Normal)
- returns
created Reaction[T]
- Definition Classes
- Reactive
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collect[R](f: PartialFunction[Unit, R]): Channel[R]
Functional collection of this Channel into another Channel.
Functional collection of this Channel into another Channel. All values received by this Channel will be collected and forwarded to the new Channel if they are collected by the conversion function.
- R
the type of the Channel
- f
conversion partial function
- returns
Channel[R]
- Definition Classes
- Channel
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fire(value: Unit, previous: Option[Unit], reactions: List[Reaction[Unit]] = this.reactions()): ReactionStatus
Fires the value to the Reactions
Fires the value to the Reactions
- Attributes
- protected
- Definition Classes
- Reactive
- def future(condition: (Unit) => Boolean = _ => true): Future[Unit]
Convenience method to create a
Future[T]
that will complete upon the next reaction that meets to supplied condition.Convenience method to create a
Future[T]
that will complete upon the next reaction that meets to supplied condition.- condition
optional condition that must be true for this to fire (Defaults to accept anything)
- returns
Future[T]
- Definition Classes
- Reactive
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[R](f: (Unit) => R): Channel[R]
Functional mapping of this Channel into another Channel.
Functional mapping of this Channel into another Channel. All values received by this Channel will be mapped and forwarded to the new Channel.
- R
the type of the new Channel
- f
conversion function
- returns
Channel[R]
- Definition Classes
- Channel
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def on(f: => Unit, priority: Double = Priority.Normal): Reaction[Unit]
Convenience method to create a Reaction to monitor changes to this Reactive when you don't care about the actual value.
Convenience method to create a Reaction to monitor changes to this Reactive when you don't care about the actual value.
- f
the function reaction to invoke in reaction to a value received
- priority
the priority in comparison to other reactions (Defaults to Priority.Normal)
- returns
created Reaction[T]
- Definition Classes
- Reactive
- def once(f: (Unit) => Unit, condition: (Unit) => Boolean = _ => true, priority: Double = Priority.Normal): Reaction[Unit]
Convenience method to create a Reaction to monitor a single reaction based on an optional condition.
Convenience method to create a Reaction to monitor a single reaction based on an optional condition.
- f
the function reaction
- condition
optional condition that must be true for this to fire (Defaults to accept anything)
- priority
the priority in comparison to other reactions (Defaults to Priority.Normal)
- returns
created Reaction[T]
- Definition Classes
- Reactive
- lazy val reactions: Reactions[Unit]
Reactions currently associated with this Reactive
Reactions currently associated with this Reactive
- Definition Classes
- Reactive
- def set(f: => Unit): Unit
Sets the function evaluation representing the new value for this mutable entity
- def static(f: Unit): Unit
Sets a static value representing the new value for this mutable entity
Sets a static value representing the new value for this mutable entity
- Definition Classes
- Mutable
- def status: Option[ReactionStatus]
If the current thread is reacting to a value currently, status represents the status of the reaction.
If the current thread is reacting to a value currently, status represents the status of the reaction. This can be set to ReactionStatus.Stop in order to stop propagation. This can also be achieved via stopPropagation().
- Definition Classes
- Reactive
- def status_=(status: ReactionStatus): Unit
- Definition Classes
- Reactive
- def stopPropagation(): Unit
Shortcut functionality to call
status = ReactionStatus.Stop
Shortcut functionality to call
status = ReactionStatus.Stop
- Definition Classes
- Reactive
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trigger(): Unit
Fires an event on this trigger
- def update(f: => Unit): Unit
Convenience alternative to "set"
Convenience alternative to "set"
- Definition Classes
- Mutable
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated