DataResponsePublisher

@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
public struct DataResponsePublisher<Value> : Publisher where Value : Sendable

A Combine Publisher that publishes the DataResponse<Value, AFError> of the provided DataRequest.

Available where Value == Data?

  • Creates an instance which publishes a DataResponse<Data?, AFError> value without serialization.

    Declaration

    Swift

    @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
    public init(_ request: DataRequest, queue: DispatchQueue)