DataTaskPublisher

public class DataTaskPublisher : Publisher

The DataTaskPublisher class for SAPURLSession.

  • The output of this dataTaskPublisher would be a tuple with objects of type Data and URLResponse

    Declaration

    Swift

    public typealias Output = (data: Data, response: URLResponse)
  • The kind of errors this publisher might publish.

    Declaration

    Swift

    public typealias Failure = Error
  • The receive function receives the subscriber S , creates the subscription object and passes on to the subscriber

    Declaration

    Swift

    public func receive<S>(subscriber: S) where S : Subscriber, S.Failure == SAPURLSession.DataTaskPublisher.Failure, S.Input == SAPURLSession.DataTaskPublisher.Output