Named

trait Named

This trait lets the user set an ad-hoc name for this instance. Used for debugging and tracing.

Subclasses: BaseObservable, Observer

class Object
trait Matchable
class Any
trait BaseObservable[Self, A]
trait EventStream[A]
class MergeStream[A]
trait MultiParentStream[I, O]
class CombineStreamN[A, Out]
class SampleCombineStreamN[A, Out]
trait SingleParentStream[I, O]
class CollectStream[A, B]
class DropStream[A]
class FilterStream[A]
class MapStream[I, O]
class TakeStream[A]
class DelayStream[A]
class SwitchStream[I, O]
trait Observable[A]
trait Signal[A]
trait MultiParentSignal[I, O]
class CombineSignalN[A, Out]
class SampleCombineSignalN[A, Out]
trait SingleParentSignal[I, O]
class MapSignal[I, O]
class DerivedVarSignal[A, B]
class ScanLeftSignal[A, B]
class SplitSignal[M, Input, Output, Key]
class SwitchSignal[A]
class Val[A]
trait StrictSignal[A]
trait OwnedSignal[A]
trait CustomSource[A]
trait Observer[A]
class WriteBus[A]
class EventBus[A]
trait Var[A]
class DerivedVar[A, B]
class SourceVar[A]

Value members

Concrete methods

protected def defaultDisplayName: String

This is the method that subclasses override to preserve the user's ability to set custom display names.

This is the method that subclasses override to preserve the user's ability to set custom display names.

final def displayName: String
def setDisplayName(name: String): Named.this.type

Set the display name for this instance (observable or observer).

Set the display name for this instance (observable or observer).

  • This method modifies the instance and returns this. It does not create a new instance.
  • New name you set will override the previous name, if any. This might change in the future. For the sake of sanity, don't call this more than once for the same instance.
  • If display name is set, toString will output it instead of the standard type@hashcode string
final override def toString: String

Override defaultDisplayName instead of this, if you need to.

Override defaultDisplayName instead of this, if you need to.

Definition Classes
Any