Skip to content

Conversation

@morganchen12
Copy link
Contributor

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.

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2025

Apple API Diff Report

Commit: 909266e
Last updated: Wed Jan 8 16:05 PST 2025
View workflow logs & download artifacts


[BUILD ERROR] FirebaseStorage


@morganchen12
Copy link
Contributor Author

Closed in favor of #14763

@firebase firebase locked and limited conversation to collaborators Jul 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants