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.
- Alphabetic
- By Inheritance
- DebuggableSignal
- DebuggableObservable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def debugBreak(when: (Try[A]) => Boolean = always): Signal[A]
Trigger JS debugger for emitted events and errors if
whenpasses Note: for Signals this also triggers onStart (with the current value at the time)Trigger JS debugger for emitted events and errors if
whenpasses Note: for Signals this also triggers onStart (with the current value at the time)- Definition Classes
- DebuggableObservable
- def debugBreakErrors(when: (Throwable) => Boolean = always): Signal[A]
Trigger JS debugger for emitted errors (but not events) if
whenpasses Note: for Signals this also triggers onStart (if current value is an error)Trigger JS debugger for emitted errors (but not events) if
whenpasses Note: for Signals this also triggers onStart (if current value is an error)- Definition Classes
- DebuggableObservable
- def debugBreakEvents(when: (A) => Boolean = always): Signal[A]
Trigger JS debugger for emitted events (but not errors) if
whenpasses Note: for Signals this also triggers onStart (if current value is not an error)Trigger JS debugger for emitted events (but not errors) if
whenpasses Note: for Signals this also triggers onStart (if current value is not an error)- Definition Classes
- DebuggableObservable
- def debugBreakInitialEval(when: (Try[A]) => Boolean = always): Signal[A]
Trigger JS debugger when signal is evaluating its initial value (if
whenpasses at that time) - 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
- def debugBreakStarts: Signal[A]
Trigger JS debugger when the observable starts
Trigger JS debugger when the observable starts
- Definition Classes
- DebuggableObservable
- def debugBreakStops: Signal[A]
Trigger JS debugger when the observable stops
Trigger JS debugger when the observable stops
- Definition Classes
- DebuggableObservable
- def debugLog(when: (Try[A]) => Boolean = always, useJsLogger: Boolean = false): Signal[A]
Log emitted events and errors if
whencondition passes, using dom.console.log ifuseJsLoggeris true.Log emitted events and errors if
whencondition passes, using dom.console.log ifuseJsLoggeris true. Note: for Signals this also triggers onStart (with the current value at the time)- Definition Classes
- DebuggableObservable
- def debugLogErrors(when: (Throwable) => Boolean = always): Signal[A]
Log emitted errors (but not regular events) if
whencondition passes Note: for Signals this also triggers onStart (if current value is an error)Log emitted errors (but not regular events) if
whencondition passes Note: for Signals this also triggers onStart (if current value is an error)- Definition Classes
- DebuggableObservable
- def debugLogEvents(when: (A) => Boolean = always, useJsLogger: Boolean = false): Signal[A]
Log emitted events (but not errors) if
whencondition passes, using dom.console.log ifuseJsLoggeris true.Log emitted events (but not errors) if
whencondition passes, using dom.console.log ifuseJsLoggeris true. Note: for Signals this also triggers onStart (if current value is not an error)- Definition Classes
- DebuggableObservable
- def debugLogInitialEval(when: (Try[A]) => Boolean = always, useJsLogger: Boolean = false): Signal[A]
Log when signal is evaluating its initial value (if
whenpasses at that time) - 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
- def debugLogStarts: Signal[A]
Log when the observable starts
Log when the observable starts
- Definition Classes
- DebuggableObservable
- def debugLogStops: Signal[A]
Log when the observable stops
Log when the observable stops
- Definition Classes
- DebuggableObservable
- 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
- 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
- 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
- def debugSpyInitialEval(fn: (Try[A]) => Unit): Signal[A]
Execute fn when signal is evaluating its initial value
- 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
- 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
- def debugSpyStops(fn: () => Unit): Signal[A]
Execute callbacks on when the observable stops
Execute callbacks on when the observable stops
- Definition Classes
- DebuggableObservable
- 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
- 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 saystream.setDisplayName("foo").debugLog(), the logger's displayName will be "foo|Debug" – with a suffix – to differentiate it from the "foo" displayName ofstreamitself.- Definition Classes
- DebuggableObservable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 log(action: String, value: Option[Any], useJsLogger: Boolean): Unit
- Attributes
- protected[this]
- Definition Classes
- DebuggableObservable
- 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()
- val observable: Signal[A]
- Definition Classes
- DebuggableSignal → DebuggableObservable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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