Packages

c

com.raquo.airstream.debug

DebuggableSignal

class DebuggableSignal[+A] extends DebuggableObservable[Signal, A]

This implicit class provides Signal-specific debug* methods, e.g.:

signal.debugLogInitialEval().debugLog()

See DebuggableObservable and the docs for details.

The implicit conversion to this class is defined in the Signal companion object.

This is not a value class because it needs to extend DebuggableObservable. The performance penalty of one extra instantiation per debugged stream should not be noticeable.

Linear Supertypes
DebuggableObservable[Signal, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DebuggableSignal
  2. DebuggableObservable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DebuggableSignal(observable: Signal[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def debugBreak(when: (Try[A]) => Boolean = always): Signal[A]

    Trigger JS debugger for emitted events and errors if when passes Note: for Signals this also triggers onStart (with the current value at the time)

    Trigger JS debugger for emitted events and errors if when passes Note: for Signals this also triggers onStart (with the current value at the time)

    Definition Classes
    DebuggableObservable
  7. def debugBreakErrors(when: (Throwable) => Boolean = always): Signal[A]

    Trigger JS debugger for emitted errors (but not events) if when passes Note: for Signals this also triggers onStart (if current value is an error)

    Trigger JS debugger for emitted errors (but not events) if when passes Note: for Signals this also triggers onStart (if current value is an error)

    Definition Classes
    DebuggableObservable
  8. def debugBreakEvents(when: (A) => Boolean = always): Signal[A]

    Trigger JS debugger for emitted events (but not errors) if when passes Note: for Signals this also triggers onStart (if current value is not an error)

    Trigger JS debugger for emitted events (but not errors) if when passes Note: for Signals this also triggers onStart (if current value is not an error)

    Definition Classes
    DebuggableObservable
  9. def debugBreakInitialEval(when: (Try[A]) => Boolean = always): Signal[A]

    Trigger JS debugger when signal is evaluating its initial value (if when passes at that time)

  10. def debugBreakLifecycle: Signal[A]

    Trigger JS debugger when the observable starts and stops

    Trigger JS debugger when the observable starts and stops

    Definition Classes
    DebuggableObservable
  11. def debugBreakStarts: Signal[A]

    Trigger JS debugger when the observable starts

    Trigger JS debugger when the observable starts

    Definition Classes
    DebuggableObservable
  12. def debugBreakStops: Signal[A]

    Trigger JS debugger when the observable stops

    Trigger JS debugger when the observable stops

    Definition Classes
    DebuggableObservable
  13. def debugLog(when: (Try[A]) => Boolean = always, useJsLogger: Boolean = false): Signal[A]

    Log emitted events and errors if when condition passes, using dom.console.log if useJsLogger is true.

    Log emitted events and errors if when condition passes, using dom.console.log if useJsLogger is true. Note: for Signals this also triggers onStart (with the current value at the time)

    Definition Classes
    DebuggableObservable
  14. def debugLogErrors(when: (Throwable) => Boolean = always): Signal[A]

    Log emitted errors (but not regular events) if when condition passes Note: for Signals this also triggers onStart (if current value is an error)

    Log emitted errors (but not regular events) if when condition passes Note: for Signals this also triggers onStart (if current value is an error)

    Definition Classes
    DebuggableObservable
  15. def debugLogEvents(when: (A) => Boolean = always, useJsLogger: Boolean = false): Signal[A]

    Log emitted events (but not errors) if when condition passes, using dom.console.log if useJsLogger is true.

    Log emitted events (but not errors) if when condition passes, using dom.console.log if useJsLogger is true. Note: for Signals this also triggers onStart (if current value is not an error)

    Definition Classes
    DebuggableObservable
  16. def debugLogInitialEval(when: (Try[A]) => Boolean = always, useJsLogger: Boolean = false): Signal[A]

    Log when signal is evaluating its initial value (if when passes at that time)

  17. def debugLogLifecycle(logStarts: Boolean = true, logStops: Boolean = true): Signal[A]

    Log when the observable starts and stops

    Log when the observable starts and stops

    Definition Classes
    DebuggableObservable
  18. def debugLogStarts: Signal[A]

    Log when the observable starts

    Log when the observable starts

    Definition Classes
    DebuggableObservable
  19. def debugLogStops: Signal[A]

    Log when the observable stops

    Log when the observable stops

    Definition Classes
    DebuggableObservable
  20. def debugSpy(fn: (Try[A]) => Unit): Signal[A]

    Execute fn on every emitted event or error Note: for Signals this also triggers onStart (with the current value at the time)

    Execute fn on every emitted event or error Note: for Signals this also triggers onStart (with the current value at the time)

    Definition Classes
    DebuggableObservable
  21. def debugSpyErrors(fn: (Throwable) => Unit): Signal[A]

    Execute fn on every emitted error (but not regular events) Note: for Signals this also triggers onStart (if current value is an error)

    Execute fn on every emitted error (but not regular events) Note: for Signals this also triggers onStart (if current value is an error)

    Definition Classes
    DebuggableObservable
  22. def debugSpyEvents(fn: (A) => Unit): Signal[A]

    Execute fn on every emitted event (but not error) Note: for Signals this also triggers onStart (if current value is not an error)

    Execute fn on every emitted event (but not error) Note: for Signals this also triggers onStart (if current value is not an error)

    Definition Classes
    DebuggableObservable
  23. def debugSpyInitialEval(fn: (Try[A]) => Unit): Signal[A]

    Execute fn when signal is evaluating its initial value

  24. def debugSpyLifecycle(startFn: (Int) => Unit, stopFn: () => Unit): Signal[A]

    Execute callbacks on when the observable starts and stops

    Execute callbacks on when the observable starts and stops

    startFn

    topoRank => ()

    Definition Classes
    DebuggableObservable
  25. def debugSpyStarts(fn: (Int) => Unit): Signal[A]

    Execute callbacks on when the observable starts

    Execute callbacks on when the observable starts

    fn

    topoRank => ()

    Definition Classes
    DebuggableObservable
  26. def debugSpyStops(fn: () => Unit): Signal[A]

    Execute callbacks on when the observable stops

    Execute callbacks on when the observable stops

    Definition Classes
    DebuggableObservable
  27. def debugTopoRank: Int

    Return the observable's topoRank.

    Return the observable's topoRank. This does not affect the observable in any way.

    Definition Classes
    DebuggableObservable
  28. def debugWithName(displayName: String): Signal[A]

    Create a new observable that listens to the original, and set the displayName of the new observable.

    Create a new observable that listens to the original, and set the displayName of the new observable. This is different from setDisplayName.

    If you say stream.debugWithName("foo").debugLog(), the displayName used by the logger will be "foo" verbatim, whereas if you say stream.setDisplayName("foo").debugLog(), the logger's displayName will be "foo|Debug" – with a suffix – to differentiate it from the "foo" displayName of stream itself.

    Definition Classes
    DebuggableObservable
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  31. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def log(action: String, value: Option[Any], useJsLogger: Boolean): Unit
    Attributes
    protected[this]
    Definition Classes
    DebuggableObservable
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. val observable: Signal[A]
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from DebuggableObservable[Signal, A]

Inherited from AnyRef

Inherited from Any

Ungrouped