SwiftclassWeatherCore
NanoSyncManager
class WeatherCore.NanoSyncManager
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolWeatherCore.NanoSyncManagerType
Members 18
- deinit
deinit - field
var continuation: AsyncStream<A>.Continuation? - field
let darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType+0x20 - field
var isEnabled: Bool+0x88 - field
let nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType+0x48 - field
let observationNotification: WeatherCore.DarwinNotificationName+0x78 - field
let postNotification: WeatherCore.DarwinNotificationName+0x10 - field
let store: WeatherCore.NanoSyncManager<A>.Store+0x70 - field
let stream: AsyncStream<A> - field
var task: Task<(), Never>? - func
enable() -> () - func
mergeIfNeeded() async -> A? - func
setDataAsync(A) async -> () - init
WeatherCore.NanoSyncManager< where A == WeatherCore.SyncedData>.init(keyValueStore: WeatherCore.KeyValueStoreType, darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType, nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType, shouldAutoEnable: Bool, coherenceContextProvider: WeatherCore.CoherenceContextProviderType) -> WeatherCore.NanoSyncManager<WeatherCore.SyncedData> - init
WeatherCore.NanoSyncManager< where A == WeatherCore.SyncedData>.init(keyValueStore: WeatherCore.KeyValueStoreType, darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType, nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType, shouldAutoEnable: Bool, context: Coherence.CRContext?) -> WeatherCore.NanoSyncManager<WeatherCore.SyncedData> - init
WeatherCore.NanoSyncManager< where A == WeatherCore.SyncedData>.init(keyValueStore: WeatherCore.KeyValueStoreType, darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType, nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType, context: Coherence.CRContext?) -> WeatherCore.NanoSyncManager<WeatherCore.SyncedData> - typealias
typealias DataType = A - var
final var updates: WeatherCore.NanoSyncManagerUpdates<A> { get }
Header
class NanoSyncManager<A> where A: Coherence.CRDT, A: Swift.CustomStringConvertible, A: WeatherCore.UniqueMergeable { actor Store { enum MergeResult { case syncNotNeeded(A?) case syncNeeded(A) } let readKey: Swift.String let writeKey: Swift.String let keyValueStore: any WeatherCore.KeyValueStoreType let contextAccessor: any WeatherCore.NanoSyncManagerCoherenceContextAccessor } let postNotification: WeatherCore.DarwinNotificationName let darwinNotificationCenter: any WeatherCore.DarwinNotificationCenterType let nanoPrefencesSynchronizer: any WeatherCore.NanoPreferencesSynchronizerType let store: WeatherCore.NanoSyncManager<A>.Store let observationNotification: WeatherCore.DarwinNotificationName var isEnabled: Swift.Bool let stream: Swift.AsyncStream<A> var continuation: Swift.AsyncStream<A>.Continuation? var task: Swift.Task<(), Swift.Never>? final var updates: WeatherCore.NanoSyncManagerUpdates<A> { get } final func setDataAsync(_: A) async final func mergeIfNeeded() async -> A? final func enable() deinit }