DataTaskSubscriber

public class DataTaskSubscriber : Subscriber, Cancellable

The DataTaskSubscriber class for SAPURLSession.

  • The kind of values this subscriber receives.

    Declaration

    Swift

    public typealias Input = (data: Data, response: URLResponse)
  • The kind of errors this subscriber might receive.

    Declaration

    Swift

    public typealias Failure = Error
  • Undocumented

    Declaration

    Swift

    public init(sapUrlSession: SAPURLSession)
  • Tells the subscriber that it has successfully subscribed to the publisher and may request items.

    Declaration

    Swift

    public func receive(subscription: Subscription)
  • Tells the subscriber that the publisher has produced an element.

    Declaration

    Swift

    public func receive(_ input: Input) -> Subscribers.Demand
  • Tells the subscriber that the publisher has completed publishing, either normally or with an error.

    Declaration

    Swift

    public func receive(completion: Subscribers.Completion<Error>)
  • Cancel the subscription-subscriber relationship.

    Declaration

    Swift

    public func cancel()