CombineWrapper

public final class CombineWrapper : WebcomWrapper, Equatable, CustomDebugStringConvertible

The type that wraps DatasyncService 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

Stored Properties

API

  • 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.CombineWrapper

    Parameters

    defaultCompletedSubscriptionPolicy

    The policy to apply by default to subscriptions created from the returned manager when they are completed.

    defaultCallbackQueue

    The 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, the defaultCallbackQueue of the application from which this service comes is used instead.

    file

    The file from which the method is called. This is used for debugging purposes.

    line

    The line from which the method is called. This is used for debugging purposes.

    Return Value

    A new DatasyncManager.CombineWrapper instance