DatasyncNode
public final class DatasyncNode : Hashable, CustomStringConvertible
extension DatasyncNode: WebcomCombinable
An object that represents a reference to a database node.
By abuse of language, the node reference is sometimes assimilate with the referred node itself. This does not usually preclude understanding. Just keep in mind that there may be several references for the same database node.
From a theoretical point of view, all nodes always exist: the concept on existence is a nonsense.
From a practical point of view, we often consider that a node exists when its value is not null
(the JSON null value, not to be confused with the Swift nil keyword).
Instances are typically created using:
- the
DatasyncManager.node(for:)method or the equivalent(_:_:)operator of aDatasyncManagerinstance, - the
DatasyncNode.relativeNode(for:)method of anotherDatasyncNodeinstance or, - the
DatasyncNode.push(_:queue:then:)method or the equivalentDatasyncNode.+=(_:_:)operator of anotherDatasyncNodeinstance, - the
DatasyncEvent.nodeproperty of aDatasyncEventvalue.
A node reference always belongs to the DatasyncManager from which it was created.
A node reference created from another node reference belongs to the same manager as the latter.
A node reference obtained from an event belongs to the same manager as the node that subscribes to that event.
Furthermore, this DatasyncManager instance derives from a WebcomApplication instance.
-
The JavaScript reference that this instance refers to
Declaration
Swift
public var serverlessDbNode: JSValue? { get } -
The absolute path of the node referred by this instance.
The path consists of the keys of the ancestors of this node, starting from the root of the tree, separated by
/(slash) characters. The last segment of the path is the key of this node. The before last segment of the path, if any, is the key of the parent of this node. The path always begins with a/. The path of the root node is"/".Declaration
Swift
public var path: String { get } -
Returns a reference to the parent of the node referred by this instance.
This method behaves like the
parentproperty, with the difference it throws instead of returningnil.Note: With a reference to the root node,
relativeNodeThrows(for: "..")returns a reference to the root node.Throws
AWebcomErrorvalue when this node is the root node.Declaration
Swift
public func parentThrows() throws -> DatasyncNode -
A reference to the parent of the node referred by this instance.
The root node does not have a parent, so this property returns
nilfor the root node. For all other nodes, this property never returnsnil.Note: With a reference to the root node,
relativeNode(for: "..")returns a reference to the root node.Declaration
Swift
public var parent: DatasyncNode? { get } -
Returns a reference to another node, relatively to the node referred by this instance.
This method behaves like the
relativeNode(for:)method, with the difference it throws instead of returningnil.Declaration
Swift
public func relativeNodeThrows(for path: String) throws -> DatasyncNodeParameters
pathThe relative path of the node to refer.
Return Value
A reference to the node corresponding to the relative
pathwhen it is valid. -
Returns a reference to another node, relatively to the node referred by this instance.
This method only returns
nilwhen thepathis ill-formed, that is when it contains forbidden characters. All nodes always exists: this method always returns a plain node reference when thepathis syntactically valid.The path consists of segments separated by
/(slash) characters. Each segment corresponds to a move in the database tree:- The starting point is the node corresponding to this instance.
- The
.segment is a no-operation. - The
..segment indicates to go one level up in the tree. When already at the root node, this is a no-operation. - The empty segment, when using a
/at the beginning or at the end of thepath, or when using several consecutive/, is a no-operation. - Any other valid segment indicates to go one level down towards the so-named child.
If the path referred by this node is
/foo/bar:- and
pathis equal togeek,/geek,geek/or/geek/, the path of the resulting node is/foo/bar/geek, - and
pathis equal to../geek/noobor/../geek//noob/.or../geek/./noob/., the path of the resulting node is/foo/geek/noob, - and
pathis equal to../geek/../..//../.., the resulting node is the root node.
Note: With a reference to the root node,
parentreturnsnil.Declaration
Swift
public func relativeNode(for path: String) -> DatasyncNode?Parameters
pathThe relative path of the node to refer. It can start or not with a
/(slash) character. It is always relative.Return Value
A reference to the node corresponding to the relative
pathwhen it is valid,nilotherwise. -
Returns a reference to a database node, relatively to a base node.
This operator returns:
node.relativeNode(for: path)Declaration
Swift
public static func / (node: DatasyncNode, path: String) -> DatasyncNode?Parameters
nodeA reference to the base node.
pathThe relative path of the node to refer. It can start or not with a
/(slash) character. It is always relative.Return Value
A node reference when the
pathis valid,nilotherwise. -
Creates a reference to a new child of the node referred by this instance.
The key of the new child is a unique identifier based on a timestamp. Such a key is also called a push identifier. The keys of several children created with this method are ordered chronologically. With this method, several users can add children to the same data node of a database at the same time without any write conflict.
Note: More exactly, since from a theoretical point of view all nodes always exist, this method actually returns a reference to a node whose current value is JSON
null.Declaration
Swift
public func createChild() -> DatasyncNodeReturn Value
A reference to a new child of this node.
-
Gets the value of the node referred by this instance.
The value is not returned synchronously, but a callback is called asynchronously with the value as its parameter.
The
decodedValue(queue:then:)method can be used to get decoded values.Declaration
Swift
public func value(queue: DispatchQueue? = nil, then completionCallback: @escaping WebcomResult<DatasyncValue>.Callback)Parameters
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with the current value of the referred node. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Gets the value of the node referred by this instance.
The value is not returned synchronously, but a callback is called asynchronously with the value as its parameter.
This method behaves like the
value(queue:then:)method with a callback that receives a decoded value in case of success. When the value cannot be decoded, thecompletionCallbackis called with an error having theWebcomError.SDKCode.decodingFailedcode. If this behavior does not fit your needs, use thevalue(queue:then:)method and process the callback parameter as expected.The decoding is done using the
WebcomApplication.jsonDecoderof theWebcomApplicationfrom which this node derives.Declaration
Swift
public func decodedValue<T>(queue: DispatchQueue? = nil, then completionCallback: @escaping WebcomResult<T>.Callback) where T : DecodableParameters
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with the decoded current value of the referred node. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
The value of the node referred by this instance from the cache.
When there is no value available in the cache, the returned value is
null(not to be confused with the Swiftnilkeyword).In general, to get the value of a node, it is preferable to use the
value(queue:then:)method.Declaration
Swift
public var cacheValue: DatasyncValue { get } -
Gets the content of the cache on the current node.
Declaration
Swift
public func getCache(with constraint: DatasyncChildrenConstraint = .all) -> DatasyncValue?Parameters
constraintIf specified, filters the result by applying the constraint The time at which to perform the operation.
-
Clears the value of the node referred by this instance.
Clearing the value is equivalent to setting a JSON
nullvalue. Therefore, calling this method is equivalent to call:set(nil, at: time, queue: queue, then: completionCallback)Declaration
Swift
public func clear(at time: DatasyncTime = .now, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<Void>.Callback? = nil)Parameters
timeThe time at which to perform the operation.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with a void value. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Sets the value of the node referred by this instance.
Note: In most cases, you should rather use the
set(_:at:queue:then:)overload that takes anEncodableparameter.All children of the referred node cleared before setting the new value. The
merge(_:with:at:queue:then:)method may be used to merge existing children with the ones of thevaluewhen it is a JSON object or array.Declaration
Swift
public func set(_ raw: WebcomMarkers.Raw, _ json: Any?, at time: DatasyncTime = .now, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<Void>.Callback? = nil)Parameters
rawUse the
.rawvalue to disambiguate with theset(_:at:queue:then:)overload that takes anEncodableparameter.jsonThe value to set. It must be valid JSON (object, array, string, number, boolean or
null). Thenullvalue can be specified withnilorNSNull().timeThe time at which to perform the operation.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with a void value. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Sets the value of the node referred by this instance.
All children of the referred node cleared before setting the new value. The
merge(with:at:queue:then:)method may be used to merge existing children with the ones of thevaluewhen it is a JSON object or array.Declaration
Swift
public func set(_ value: (some Encodable)?, at time: DatasyncTime = .now, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<Void>.Callback? = nil)Parameters
valueThe value to set. It will be encoded to JSON before being sent to the back-end, using the
WebcomApplication.jsonEncoderof theWebcomApplicationfrom which this node derives. Thenullvalue can be specified withnilorNSNull().timeThe time at which to perform the operation.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with a void value. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Sets the value of a node.
This operator is equivalent to:
node.set(value)Declaration
Swift
public static func <- (node: DatasyncNode, value: (some Encodable)?)Parameters
nodeA reference to the node whose value must be set.
valueThe value to set.
-
Merges a value with the current value of the node referred by this instance.
Note: In most cases, you should rather use the
merge(with:at:queue:then:)overload that takes anEncodableparameter.Unlike what happens with the
set(_:_:at:queue:then:):jsonmust be a valid JSON object,existing direct children (i.e. the descendants at the first level of depth) that exist in the current value are preserved when
jsondoes not specify them.
Declaration
Swift
public func merge(_ raw: WebcomMarkers.Raw, with json: [String : Any], at time: DatasyncTime = .now, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<Void>.Callback? = nil)Parameters
rawUse the
.rawvalue to disambiguate with themerge(with:at:queue:then:)overload that takes anEncodableparameter.jsonThe value to merge with. It must be a valid JSON object.
timeThe time at which to perform the operation.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with a void value. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Merges a value with the current value of the node referred by this instance.
Unlike what happens with the
set(_:at:queue:then:):valuemay not benil,- the encoding of
valueto JSON must give a JSON object (or a JSON array but this is discouraged), or the method will fail, existing direct children (i.e. the descendants at the first level of depth) that exist in the current value are preserved when
valuedoes not specify them.
Declaration
Swift
public func merge(with value: some Encodable, at time: DatasyncTime = .now, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<Void>.Callback? = nil)Parameters
valueThe value to merge with. It will be encoded to JSON before being sent to the back-end, using the
WebcomApplication.jsonEncoderof theWebcomApplicationfrom which this node derives.timeThe time at which to perform the operation.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with a void value. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Adds a new child with the given value to the node referred by this instance.
Note: In most cases, you should rather use the
push(_:queue:then:)overload that takes anEncodableparameter.This method creates a new child to the referred node and then it sets its value.
When this method returns
nil,completionCallbackis called in failure with aWebcomErrorvalue indicating the reason of the failure. It may well happen that this method returns a non-nilnode reference and thecompletionCallbackis called in failure, for example if a security rule prevents writing the child.Declaration
Swift
public func push(_ raw: WebcomMarkers.Raw, _ json: Any?, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<DatasyncNode>.Callback? = nil)Parameters
rawUse the
.rawvalue to disambiguate with thepush(_:queue:then:)overload that takes anEncodableparameter.jsonThe value to set for the created child. It must be valid JSON (object, array, string, number, boolean or
null). Thenullvalue can be specified withnilorNSNull().queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with a reference to the added child. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Adds a new child with the given value to the node referred by this instance.
This method creates a new child to the referred node and then it sets its value.
When this method returns
nil,completionCallbackis called in failure with aWebcomErrorvalue indicating the reason of the failure. It may well happen that this method returns a non-nilnode reference and thecompletionCallbackis called in failure, for example if a security rule prevents writing the child.Declaration
Swift
public func push(_ value: (some Encodable)?, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<DatasyncNode>.Callback? = nil)Parameters
valueThe value to set for the created child. It will be encoded to JSON before being sent to the back-end, using the
WebcomApplication.jsonEncoderof theWebcomApplicationfrom which this node derives. Thenullvalue can be specified withnilorNSNull().queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with a reference to the added child. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure.Return Value
A reference to the added child when the
valuein valid,nilotherwise. -
Adds a new child to a node with the given value.
This operator is equivalent to:
node.push(value)Declaration
Swift
public static func += (node: DatasyncNode, value: (some Encodable)?)Parameters
nodeA reference to the node to which a new child must be pushed.
valueThe value to set for the created child.
-
Atomically increments (or decrements) the value of the node referred by this instance.
When the node does not exist (in other words, when its initial value is
null), the node is implicitly assumed having thestartValuevalue and the incrementstepis added to that implicit value.When the node exists and its initial value is not a number, the operation fails.
This operation is robust to concurrent increment operations. It is guaranteed that if n increment operations are performed at the same time, then the value of the node is incremented by n
steps(in other words, none of the concurrent operations can overwrite another one).However, note that the returned value may not be synchronized with the actual value of the node, especially if other write operations are performed at the same time. You should rather use the
subscribe(to:childrenConstraint:stores:file:line:queue:onEvent:onCompletion:)method to watch the actual value of the node.Declaration
Swift
public func increment(from startValue: NSNumber = 0, by step: NSNumber = 1, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<NSNumber>.Callback? = nil)Parameters
startValueThe implicit initial value of the node when it does not exist.
stepThe increment to add to the initial value to get the final value. To decrement, use a negative value.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with the resulting value of the increment operation. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Runs a transaction on the node referred by this instance.
A transaction is a process that atomically sets a new value to the node depending on its initial value. In other words, the new value is computed from the initial value and it is sets only if the value of the node has not been modified in the meantime. If the value of the node just before setting the new value is no longer the initial value, then the transaction is run again.
The transaction is specified with a function, which receives as its single parameter the initial value and returns an operation to execute. The operation may consist of setting a new value or clearing the value (which is equivalent to setting the
nullvalue). The operation may also indicate to abort the transaction.If the transaction consists in incrementing (or decrementing) the value of the referred node, you should rather use the
increment(from:by:queue:then:)method which is more efficient in this case.Declaration
Swift
public func runTransaction(_ function: @escaping DatasyncTransaction.Function, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<DatasyncTransaction.Result>.Callback? = nil)Parameters
functionThe function that computes the operation to execute from the initial value of the node.
queueThe queue to which the provided
completionCallbackdispatches. Whennil, the default callback queue of the manager of this instance is used. This parameter is not used to dispatch thefunctionparameter.completionCallbackThe closure to call upon completion. In case of success, it is called with a value representing the result of the transaction. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Subscribes to events related to the value of the referred node.
The
decodedValueSubscribe(to:childrenConstraint:stores:file:line:queue:onValue:onCompletion:)method can be used to directly get decoded values.A subscription must always be stored somewhere in order to remain active. The easiest way is to let the
DatasyncManagerof the referred node store it by setting thestoresparameter totrue(which is its default value). Otherwise, the returned subscription instance must be stored by the application. Until a subscription is cancelled or revoked, it remains active and consumes resources.A subscription is cancelled:
- explicitly using the
DatasyncSubscription.cancel()method, - implicitly when it is stored in a
DatasyncManagerwhich is deinitialized, including when it has other references, - implicitly when it is deinitialized.
All subscriptions stored by a given
DatasyncManagerinstance may also be cancelled explicitly at once using theDatasyncManager.unsubscribeFromAll()method.A subscription may also be revoked by the back-end if the authenticated user loses read permission at the referred node.
To catch such a cancellation or revocation, use the
completionCallbackparameter.Important: Be careful with variables captured by the callback
If this instance belongs to a manager that is stored in a view controller (which is a strongly encouraged practice), and the
eventCallbackneeds to use a property or a method of that view controller (which is quite common), use aweakor anunownedreference for that view controller, to break the following retain cycle:view controller ---> manager ---> event callback ^ | | | o---- use weak/unowned here ----oDeclaration
Swift
@discardableResult public func subscribe(to eventType: DatasyncEventType = .valueChange, childrenConstraint: DatasyncChildrenConstraint = .all, stores: Bool = true, file: StaticString = #fileID, line: UInt = #line, queue: DispatchQueue? = nil, onEvent eventCallback: @escaping (_ event: DatasyncEvent) -> Void, onCompletion completionCallback: ((_ completion: DatasyncSubscriptionCompletion) -> Void)? = nil) -> DatasyncSubscription?Parameters
eventTypeThe type of events to subscribe.
childrenConstraintA constraint to filter the children of the referred node that are affected by the subscription
storesIndicates whether the returned subscription should be stored by the manager.
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.
queueThe queue to which the provided
eventCallbackandcompletionCallbackdispatch. Whennil, the default callback queue of the manager of this instance is used.eventCallbackThe closure to call when the specified event occurs.
eventThe event that occurred.
completionCallbackThe closure to call when the subscription completes.
completionA value representing how the subscription completed.
Return Value
An instance describing the subscription, or
nilif the subscription failed. - explicitly using the
-
Subscribes to events related to the value of the referred node.
This method behaves like the
subscribe(to:childrenConstraint:stores:file:line:queue:onEvent:onCompletion:)method with a callback that receives the decoded value brought by the event. When the value cannot be decoded, thedecodedValueCallbackis not called. Such a non-decodable value is simply ignored. If this behavior does not fit your needs, use thesubscribe(to:childrenConstraint:stores:file:line:queue:onEvent:onCompletion:)method and process theeventas expected.Declaration
Swift
@discardableResult public func decodedValueSubscribe<T>(to eventType: DatasyncEventType = .valueChange, childrenConstraint: DatasyncChildrenConstraint = .all, stores: Bool = true, file: StaticString = #fileID, line: UInt = #line, queue: DispatchQueue? = nil, onValue decodeValueCallback: @escaping (_ decodedValue: T) -> Void, onCompletion completionCallback: ((_ completion: DatasyncSubscriptionCompletion) -> Void)? = nil) -> DatasyncSubscription? where T : DecodableParameters
eventTypeThe type of events to subscribe.
childrenConstraintA constraint to filter the children of the referred node that are affected by the subscription.
storesIndicates whether the returned subscription should be stored by the manager.
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.
queueThe queue to which the provided
decodeValueCallbackandcompletionCallbackdispatch. Whennil, the default callback queue of the manager of this instance is used.decodeValueCallbackThe closure to call when the specified event occurs and the value can be decoded.
decodedValueThe value brought by the event that occurred.
completionCallbackThe closure to call when the subscription completes.
completionA value representing how the subscription completed.
Return Value
An instance describing the subscription, or
nilif the subscription failed. -
Creates a subscription that assigns the children of the referred node to a dictionary.
In the dictionary:
- the keys are the keys of the children, as returned by
DatasyncEvent.key, - the values are decoded from the values of the children using
DatasyncValue.decoded().
This method uses an underlying subscription to follow children additions, changes and removals. The dictionary is updated each time an event is received for that subscription. If the value of an added or changed child could not be decoded, the corresponding element in the dictionary is removed. If the subscription is revoked by the back-end, the dictionary is cleared.
Depending on
stores, the subscription may be stored by theDatasyncManagerof the referred node, as thesubscribe(to:childrenConstraint:stores:file:line:queue:onEvent:onCompletion:)method does.To avoid a retain cycle, the subscription does not keep a strong reference on the
object. The developer must ensure that its lifetime is at least as long as that of the subscription. This is the case when the dictionary and theDatasyncManagerare stored in the same object, provided thatstoresistrue.Example:
class EmployeeDirectory { struct Employee: Decodable { let name: String let yearOfBirth: Int } let datasyncManager = Webcom.defaultApplication.datasyncService.createManager() var employees: [String: Employee] = [:] func assignEmployees() { let employeesNode = datasyncManager / "employees" employeesNode?.assignChildren(to: \.employees, on: self) } ... }Declaration
Swift
@discardableResult public func assignChildren<R, T>(to keyPath: ReferenceWritableKeyPath<R, [WebcomKey : T]>, on object: R, stores: Bool = true, queue: DispatchQueue? = nil, file: StaticString = #fileID, line: UInt = #line) -> DatasyncSubscription? where R : AnyObject, T : DecodableParameters
keyPathA key path that indicates the dictionary property to assign.
objectThe object that contains the dictionary property to assign.
storesIndicates whether the returned subscription should be stored by the manager.
queueThe queue to which dictionary updates are dispatched. When
nil, the default callback queue of the manager of this instance is used.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
An instance describing the underlying subscription, or
nilif the subscription failed. - the keys are the keys of the children, as returned by
-
Copies the value of the node referred by this instance to another node.
All children of the destination node are cleared before setting its value.
Declaration
Swift
public func copyValue(to destinationNode: DatasyncNode, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<DatasyncValue>.Callback? = nil)Parameters
destinationNodeA reference to the node to set with the value of this node.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with the copied value. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Copies the value of the node referred by this instance to another node.
All children of the destination node are cleared before setting its value.
Declaration
Swift
public func copyValue(to destinationPath: String, queue: DispatchQueue? = nil, then completionCallback: WebcomResult<DatasyncValue>.Callback? = nil)Parameters
destinationPathThe path of the node to set with the value of this node.
queueThe queue to which the provided callback dispatches. When
nil, the default callback queue of the manager of this instance is used.completionCallbackThe closure to call upon completion. In case of success, it is called with the copied value. In case of failure, it is called with a
WebcomErrorvalue indicating the reason of the failure. -
Cancels an operation registered using the
DatasyncTime.nextDisconnectionorDatasyncTime.onDisconnectionvalue for the node referred by this instance.If no operation is currently registered, this method has no effect. This method cannot cancel an operation that has already been performed by the back-end.
Declaration
Swift
public func cancelNextDisconnectionAction(queue: DispatchQueue? = nil, then completionCallback: WebcomResult<Void>.Callback? = nil)
-
Declaration
Swift
public static func == (left: DatasyncNode, right: DatasyncNode) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var description: String { get }
-
The type that wraps
DatasyncNodein order to enrich it with a Combine-based API.See also the documentation section of
WebcomWrapperfor the corresponding wrapped type.To use this type, import the following dependency in your code:
See moreimport WebcomCombineDeclaration
Swift
public final class CombineWrapper : WebcomWrapper, Hashable, CustomStringConvertible -
The wrapping instance, which has a Combine-based API.
Declaration
Swift
public var forCombine: CombineWrapper { get }