PromiseWrapper
public final class PromiseWrapper : WebcomWrapper, Equatable, CustomDebugStringConvertible
The type that wraps DatasyncService in order to enrich it with a PromiseKit-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 WebcomPromises
-
Declaration
Swift
public let wrapped: DatasyncService
-
Returns a new Datasync manager to manage some database nodes and event subscriptions.
Declaration
Swift
public func createManager(defaultCompletedSubscriptionPolicy: DatasyncCompletedSubscriptionPolicy = .keepData, defaultCallbackQueue: DispatchQueue? = nil, file: StaticString = #fileID, line: UInt = #line) -> DatasyncManager.PromiseWrapperParameters
defaultCompletedSubscriptionPolicyThe policy to apply by default to subscriptions created from the returned manager when they are completed.
defaultCallbackQueueThe queue used to schedule asynchronous callbacks of methods of nodes created from the returned manager, when no explicit queue is passed to those method calls. When
nil, thedefaultCallbackQueueof the application from which this service comes is used instead.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.
Return Value
A new
DatasyncManager.PromiseWrapperinstance
PromiseWrapper Class