DownloadResponsePublisher

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

A Combine Publisher that publishes the DownloadResponse<Value, AFError> of the provided DownloadRequest.

Available where Value == URL?

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

    Declaration

    Swift

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