Class/Object

reactify

Trigger

Related Docs: object Trigger | package reactify

Permalink

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.

Linear Supertypes
Channel[Unit], Mutable[Unit], Reactive[Unit], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Trigger
  2. Channel
  3. Mutable
  4. Reactive
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Trigger()

    Permalink

Value Members

  1. def !(future: Future[Unit])(implicit ec: ExecutionContext): Future[Unit]

    Permalink

    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
  2. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  4. def &(that: Channel[Unit]): Channel[Unit]

    Permalink

    Group multiple channels together

    Group multiple channels together

    Definition Classes
    Channel
  5. def :=(f: ⇒ Unit): Unit

    Permalink

    Convenience alternative to "set"

    Convenience alternative to "set"

    Definition Classes
    Mutable
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def @=(f: Unit): Unit

    Permalink

    Convenience alternative to "static"

    Convenience alternative to "static"

    Definition Classes
    Mutable
  8. def and(that: Channel[Unit]): Channel[Unit]

    Permalink

    Group multiple channels together

    Group multiple channels together

    Definition Classes
    Channel
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def attach(f: (Unit) ⇒ Unit, priority: Double = Priority.Normal): Reaction[Unit]

    Permalink

    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
  11. def changes(f: (Unit, Unit) ⇒ Unit, priority: Double = Priority.Normal): Reaction[Unit]

    Permalink

    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
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  13. def collect[R](f: PartialFunction[Unit, R]): Channel[R]

    Permalink

    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
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def fire(value: Unit, previous: Option[Unit], reactions: List[Reaction[Unit]] = this.reactions()): ReactionStatus

    Permalink

    Fires the value to the Reactions

    Fires the value to the Reactions

    Attributes
    protected
    Definition Classes
    Reactive
  17. def future(condition: (Unit) ⇒ Boolean = _ => true): Future[Unit]

    Permalink

    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
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def map[R](f: (Unit) ⇒ R): Channel[R]

    Permalink

    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
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  25. def on(f: ⇒ Unit, priority: Double = Priority.Normal): Reaction[Unit]

    Permalink

    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
  26. def once(f: (Unit) ⇒ Unit, condition: (Unit) ⇒ Boolean = _ => true, priority: Double = Priority.Normal): Reaction[Unit]

    Permalink

    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
  27. lazy val reactions: Reactions[Unit]

    Permalink

    Reactions currently associated with this Reactive

    Reactions currently associated with this Reactive

    Definition Classes
    Reactive
  28. def set(f: ⇒ Unit): Unit

    Permalink

    Sets the function evaluation representing the new value for this mutable entity

    Sets the function evaluation representing the new value for this mutable entity

    Definition Classes
    ChannelMutable
  29. def static(f: Unit): Unit

    Permalink

    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
  30. def status: Option[ReactionStatus]

    Permalink

    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
  31. def status_=(status: ReactionStatus): Unit

    Permalink
    Definition Classes
    Reactive
  32. def stopPropagation(): Unit

    Permalink

    Shortcut functionality to call status = ReactionStatus.Stop

    Shortcut functionality to call status = ReactionStatus.Stop

    Definition Classes
    Reactive
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. def trigger(): Unit

    Permalink

    Fires an event on this trigger

  36. def update(f: ⇒ Unit): Unit

    Permalink

    Convenience alternative to "set"

    Convenience alternative to "set"

    Definition Classes
    Mutable
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Channel[Unit]

Inherited from Mutable[Unit]

Inherited from Reactive[Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped