SwiftclassWeatherCore

class WeatherCore.NanoSyncManager

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 18

  1. deinitdeinit
  2. fieldvar continuation: AsyncStream<A>.Continuation?
  3. fieldlet darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType+0x20
  4. fieldvar isEnabled: Bool+0x88
  5. fieldlet nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType+0x48
  6. fieldlet observationNotification: WeatherCore.DarwinNotificationName+0x78
  7. fieldlet postNotification: WeatherCore.DarwinNotificationName+0x10
  8. fieldlet store: WeatherCore.NanoSyncManager<A>.Store+0x70
  9. fieldlet stream: AsyncStream<A>
  10. fieldvar task: Task<(), Never>?
  11. funcenable() -> ()
  12. funcmergeIfNeeded() async -> A?
  13. funcsetDataAsync(A) async -> ()
  14. initWeatherCore.NanoSyncManager< where A == WeatherCore.SyncedData>.init(keyValueStore: WeatherCore.KeyValueStoreType, darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType, nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType, shouldAutoEnable: Bool, coherenceContextProvider: WeatherCore.CoherenceContextProviderType) -> WeatherCore.NanoSyncManager<WeatherCore.SyncedData>
  15. initWeatherCore.NanoSyncManager< where A == WeatherCore.SyncedData>.init(keyValueStore: WeatherCore.KeyValueStoreType, darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType, nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType, shouldAutoEnable: Bool, context: Coherence.CRContext?) -> WeatherCore.NanoSyncManager<WeatherCore.SyncedData>
  16. initWeatherCore.NanoSyncManager< where A == WeatherCore.SyncedData>.init(keyValueStore: WeatherCore.KeyValueStoreType, darwinNotificationCenter: WeatherCore.DarwinNotificationCenterType, nanoPrefencesSynchronizer: WeatherCore.NanoPreferencesSynchronizerType, context: Coherence.CRContext?) -> WeatherCore.NanoSyncManager<WeatherCore.SyncedData>
  17. typealiastypealias DataType = A
  18. varfinal var updates: WeatherCore.NanoSyncManagerUpdates<A> { get }
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
}