-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Remove Deferred usage from BookmarksSaver #23787
Comments
➤ Laurie Marceau commented: A comparable PR work is https://github.com/mozilla-mobile/firefox-ios/pull/18920/files ( https://github.com/mozilla-mobile/firefox-ios/pull/18920/files|smart-link ) . Basically we can add new methods that uses completion handlers instead of Deferred in RustPlaces, then use those new methods in the BookmarksSaver.swift. So we’re not removing Deferred from RustPlaces, but providing alternative so our new code can access Places without Deferred. A similar PR was done in RustPlaces with https://github.com/mozilla-mobile/firefox-ios/pull/11408/files#diff-4831bd77ff9fc5a2aad43d89be90fce6becbde4bd71db26792b2d373c2f57b1e ( https://github.com/mozilla-mobile/firefox-ios/pull/11408/files#diff-4831bd77ff9fc5a2aad43d89be90fce6becbde4bd71db26792b2d373c2f57b1e|smart-link ) . |
➤ Laurie Marceau commented: As discussed in https://mozilla.slack.com/archives/C05C9RET70F/p1734556299304639 ( https://mozilla.slack.com/archives/C05C9RET70F/p1734556299304639|smart-link ) , we can investigate to use async await instead of completion handlers, to avoid the usage of withCheckedContinuation due to unknown crashes with this functionality in production. Let’s try to be on the safer side if we can avoid those entirely |
[WIP]
Replace usage of Deferred with completion handlers in RustPlaces.swift
Acceptance Criteria:
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: