Collection

extension Collection where Element: Publisher
extension Collection where Element == ErxTask.Communication

Available where Element: Publisher

  • Subscribes to multiple additional publisher and publishes a collection upon receiving output from either publisher.

    Use combineLatest() when you want the downstream subscriber to receive a collection of the most-recent element from multiple publishers when any of them emit a value.

    Declaration

    Swift

    public func combineLatest() -> AnyPublisher<[Element.Output], Element.Failure>

Available where Element == ErxTask.Communication

  • Returns a filtered result of [ErxTask.Communication] that are unique for there properties: profile, payload, insuranceId, telematikIdand orderId The element is also unique if the orderId is nil

    Declaration

    Swift

    public func filterUnique()
        -> [ErxTask.Communication]

    Return Value

    [ErxTask.Communication] that are unique in there filtered properties