Publisher

public protocol Publisher : ObservableConvertible

A protocol to provide all publisher-like classes some utilities like publish() for Void events.

  • Publishes an element to all subscribers.

    Declaration

    Swift

    func publish(_ element: Element)

    Parameters

    element

    The element to publish.

Available where Element == Void

  • publish() Extension method

    Just publish a Void event.

    Declaration

    Swift

    func publish()