SourceSignal

open class SourceSignal<T> : Signal<T>

A signal that exposes methods for notifying observers.

  • Undocumented

    Declaration

    Swift

    public override init()
  • Undocumented

    Declaration

    Swift

    public override func addObserver(_ observer: Observer) -> ObserverRemoval
  • Delivers a .beginPossibleAsyncChange event to all observers of this signal.

    Declaration

    Swift

    public func notifyBeginPossibleAsyncChange()
  • Delivers a .valueChanging event to all observers of this signal.

    Declaration

    Swift

    public func notifyValueChanging(_ change: T, _ metadata: ChangeMetadata)
  • Delivers a .valueChanging event to all observers of this signal.

    Declaration

    Swift

    public func notifyValueChanging(_ change: T, transient: Bool = false)
  • Delivers an .endPossibleAsyncChange event to all observers of this signal.

    Declaration

    Swift

    public func notifyEndPossibleAsyncChange()
  • Undocumented

    Declaration

    Swift

    public override var observerCount: Int { get }
  • Shorthand for delivering an empty .valueChanging event to all observers of this signal.

    Declaration

    Swift

    public func notifyAction()