Skip to content
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

[WPP-1581] Modernize implementation of methods that return a Future #44

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

darinf
Copy link

@darinf darinf commented Mar 7, 2024

Also provides completion variants of async methods to support compatibility with the Firebase Objective C API.

Includes crash fix if the result of a Future is nil.

@@ -39,7 +39,7 @@ public extension FutureProtocol {
}

var result: ResultType? {
__resultUnsafe().pointee
__resultUnsafe()?.pointee
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the crash fix.

@darinf darinf marked this pull request as ready for review March 7, 2024 20:18
@darinf darinf requested a review from fiedukow March 7, 2024 20:18
@darinf darinf changed the title Modernize implementation of methods that return a Future [WPP-1581] Modernize implementation of methods that return a Future Mar 7, 2024
@darinf darinf merged commit 1d327f8 into main Mar 12, 2024
2 checks passed
@darinf darinf deleted the darin/modernize-future-use branch March 12, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants