FetchAttachmentPublisher
struct FetchAttachmentPublisher : Publisher
A Combine publisher that fetches an attachement. Can also be used to monitor progress as a large attachment is downloaded across the network.
-
Undocumented
Declaration
Swift
public struct Progress -
Declaration
Swift
public typealias Output = DittoAttachmentFetchEvent -
Declaration
Swift
public typealias Failure = Never -
Declaration
Swift
public func receive<S>(subscriber: S) where S : Subscriber, S.Failure == DittoCollection.FetchAttachmentPublisher.Failure, S.Input == DittoCollection.FetchAttachmentPublisher.Output -
A Combine publisher which produces an attachment.
Declaration
Swift
public func completed() -> AnyPublisher<DittoAttachment, Never>Return Value
A publisher with an output of
DittoAttachment.
FetchAttachmentPublisher Structure Reference