-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(auth, functions): Xcode 26.4 'async let' cleanup crashes #15991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
18f89a2
ae4c475
1cf0aeb
4671342
ca1291e
51d4de3
c27f336
ed4d5b2
a32f78e
c1f9387
b8b7d46
34b5cf8
da76244
3793849
3b2b928
40b8913
b1948f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since authToken.value can throw, an error will cause the operation block to exit early. Unlike async let, unstructured Tasks are not automatically cancelled when they go out of scope. This could lead to appCheckToken and limitedUseAppCheckToken continuing to run in the background if authToken fails. Adding a defer block to cancel the tasks ensures they are cleaned up regardless of whether the function succeeds or throws. Also, a task can be canceled more than once with no ill effects. Sources: |
Uh oh!
There was an error while loading. Please reload this page.