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 result of [ErxTask.Communication.Unique] that are unique for there properties: profile, payload, insuranceId, telematikIdand orderId The element is also unique if the orderId is nil. Duplicated taskId from ErxTask.Communication with the same ErxTask.Communication.UniqueKey are stored within ErxTask.Communication.Unique.taskIds

    Declaration

    Swift

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

    Return Value

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