do {
let query = LCQuery(className: "Todo")
self.liveQuery = try LiveQuery(query: query, eventHandler: { (liveQuery, event) in })
self.liveQuery.subscribe { (result) in
switch result {
case .success:
break
case .failure(error: let error):
print(error)
}
}
} catch {
print(error)
}
这个查询订阅不上。
参照 sdk demo 添加后
DispatchQueue.global().async
能订阅上
麻烦确认下