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
See moreDeclaration
Swift
public struct Progress
-
Declaration
Swift
public typealias Output = DittoAttachmentFetchEvent
-
Declaration
Swift
public typealias Failure = DittoSwiftError
-
Declaration
Swift
public func receive<S>(subscriber: S) where S : Subscriber, S.Failure == DittoSwiftError, S.Input == DittoAttachmentFetchEvent
-
A Combine publisher which produces
Progress
updates.Declaration
Swift
public func progress() -> AnyPublisher<Progress, DittoSwiftError>
Return Value
A publisher with an output of
Progress
. -
A Combine publisher which produces an attachment.
Declaration
Swift
public func completed() -> AnyPublisher<DittoAttachment, DittoSwiftError>
Return Value
A publisher with an output of
DittoAttachment
.