ObservableType

public extension ObservableType
  • Pauses the elements of the source observable sequence based on the latest element from the second observable sequence. Elements are ignored unless the second sequence has most recently emitted true. seealso: pausable operator on reactivex.io

    Declaration

    Swift

    func pausable<P>(withPauser pauser: P) -> Observable<Element> where P : ObservableType, P.Element == Bool

    Parameters

    pauser

    The observable sequence used to pause the source observable sequence.

    Return Value

    The observable sequence which is paused based upon the pauser observable sequence.

  • Pauses the elements of the source observable sequence based on the latest element from the second observable sequence. The pause is available only after a certain count of events. Before the number of emitted events reaches that count the Pauser will not be taken care of. When the Pauser is active, elements are ignored unless the second sequence has most recently emitted true. seealso: pausable operator on reactivex.io

    Declaration

    Swift

    func pausable<P> (afterCount count: Int, withPauser pauser: P) -> Observable<Element>
        where
        P: ObservableType,
        P.Element == Bool

    Parameters

    count

    the number of events before considering the pauser parameter

    pauser

    The observable sequence used to pause the source observable sequence.

    Return Value

    The observable sequence which is paused based upon the pauser observable sequence.