CombineWrapper
public final class CombineWrapper : WebcomWrapper
The type that wraps WebcomApplication in order to enrich it with a Combine-based API.
See also the documentation section of WebcomWrapper for the corresponding wrapped type.
To use this type, import the following dependency in your code:
import WebcomCombine
-
Declaration
Swift
public let wrapped: NotificationContext
-
Cancels the subscription to the related notification.
Declaration
Swift
@discardableResult public func cancel(application: WebcomApplication, session: URLSession? = nil) -> WebcomFuture<Void>Parameters
applicationThe current application.
sessionThe session used to send the request to the back-end. When
nil, the default session of the application of this instance is used.Return Value
A future with a void value.
-
Updates the subscription to the related notification.
Declaration
Swift
@discardableResult public func update(application: WebcomApplication, descriptor: DataSubscriptionDescriptor, file: StaticString = #fileID, line: UInt = #line, session: URLSession? = nil) -> WebcomFuture<DataSubscription>Parameters
applicationThe current application.
descriptorThe descriptor for the subscription.
fileThe file from which the method is called. This is used for debugging purposes.
lineThe line from which the method is called. This is used for debugging purposes.
sessionThe session used to send the request to the back-end. When
nil, the default session of the application of this instance is used.Return Value
A future with the subscription