Ant*_*ton 2 async-await firebase swift firebase-realtime-database swift-concurrency
我使用 firebase 的实时数据库从我的应用程序进行异步数据库查询。现在 iOS 15 为我们提供了 Swift 5.5,我喜欢使用async/await来执行这些查询,而不是传递完成闭包。
我知道我可以使用await withCheckedThrowingContinuation { }现有的 firebase 函数构建异步版本。但是异步版本已经存在吗?在 firebase 中还是由 Xcode 自动合成?
许多实时数据库异步 API 都可以通过 Xcode 的自动合成来使用。
它们将显示在 Xcode 自动完成中。
| 归档时间: |
|
| 查看次数: |
915 次 |
| 最近记录: |