firebase-ios-sdk
firebase-ios-sdk copied to clipboard
Add `sending` to returned values from async Storage APIs
This allows returned values to be used in async contexts. Otherwise, the following example:
let root = Storage.storage().reference()
// Get metadata properties
do {
let metadata = try await root.getMetadata()
} catch {
// ...
}
Produces an error:
Non-sendable type 'StorageMetadata' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary
Annotating these values as sending requires no other conformance work since references to the returned values are not held by Storage. See the sending proposal for more details.
| 1 Warning | |
|---|---|
| :warning: | Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.) |
Generated by :no_entry_sign: Danger
Apple API Diff Report
Commit: 909266e5f88c2c6938169949f5679646a29c833c Last updated: Wed Jan 8 16:05 PST 2025 View workflow logs & download artifacts
[BUILD ERROR] FirebaseStorage
Closed in favor of https://github.com/firebase/firebase-ios-sdk/pull/14763