AsyncOpenPublisher
@frozen
public struct AsyncOpenPublisher : Publisher
A publisher which emits an asynchronously opened Realm.
-
This publisher can fail if there is an error opening the Realm.
Declaration
Swift
public typealias Failure = Error
-
This publisher emits an opened Realm.
Declaration
Swift
public typealias Output = Realm
-
Triggers an event when there is a notification on the async open progress.
This should be called directly after invoking the publisher.
Declaration
Swift
public func onProgressNotification(_ onProgressNotificationCallback: @escaping ((SyncSession.Progress) -> Void)) -> RealmPublishers.AsyncOpenPublisher
Parameters
onProgressNotificationCallback
Callback which will be invoked when there is an update on progress.
Return Value
A publisher that emits an asynchronously opened Realm.
-
Specifies the scheduler on which to perform the async open task.
Declaration
Swift
public func receive<S>(on scheduler: S) -> RealmPublishers.AsyncOpenPublisher where S : Scheduler
Parameters
scheduler
The serial dispatch queue to receive values on.
Return Value
A publisher which delivers values to the given scheduler.