Skip to content

RuntimeExecutor: Remove noexcept from sync ui thread utils - #51514

Closed
RSNara wants to merge 2 commits into
react:mainfrom
RSNara:export-D75183993
Closed

RuntimeExecutor: Remove noexcept from sync ui thread utils#51514
RSNara wants to merge 2 commits into
react:mainfrom
RSNara:export-D75183993

Conversation

@RSNara

Copy link
Copy Markdown
Contributor

Summary:
In the future, we'll also make these utils execute ui blocks posted from the javascript thread. And those will be able to throw.

Changelog: [General][Changed] - RuntimeExecutor: Remove noexcept from sync ui thread utils

Differential Revision: D75183993

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels May 22, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D75183993

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D75183993

@RSNara
RSNaraforce-pushed the export-D75183993 branch 2 times, most recently from 6caf8fe to 71eb0bcCompareMay 23, 2025 19:33
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D75183993

@RSNara
RSNaraforce-pushed the export-D75183993 branch from 71eb0bc to f5bea38CompareMay 23, 2025 22:00
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D75183993

RSNara added a commit to RSNara/react-native that referenced this pull request May 24, 2025
Summary:
Pull Request resolved: react#51514
This util can execute arbitrary runtimeWork, which can throw.
In the future, we'll also make these utils execute ui blocks posted from the javascript thread. And those will be able to throw.
Therefore, let's remove the noexcept. Otherwise, if an exception bubbles up to this util, it will just crash this app.
Changelog: [General][Changed] - RuntimeExecutor: Remove noexcept from sync ui thread utils
Differential Revision: D75183993
Reviewed By: javache
@RSNara
RSNaraforce-pushed the export-D75183993 branch from f5bea38 to 7336824CompareMay 24, 2025 04:22
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D75183993

Summary:
Pull Request resolved: react#51429
If we use promises, I believe the code is just easier to understand.
Changelog: [Internal]
Differential Revision: D74941734
@RSNara
RSNaraforce-pushed the export-D75183993 branch from 7336824 to 7687a9bCompareMay 27, 2025 16:39
Summary:
Pull Request resolved: react#51514
This util can execute arbitrary runtimeWork, which can throw.
In the future, we'll also make these utils execute ui blocks posted from the javascript thread. And those will be able to throw.
Therefore, let's remove the noexcept. Otherwise, if an exception bubbles up to this util, it will just crash this app.
Changelog: [General][Changed] - RuntimeExecutor: Remove noexcept from sync ui thread utils
Reviewed By: javache
Differential Revision: D75183993
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D75183993

@RSNara
RSNaraforce-pushed the export-D75183993 branch from 7687a9b to 483dcdfCompareMay 27, 2025 16:44
@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label May 27, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 7ef278a.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.fb-exportedMergedThis PR has been merged.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@RSNara@facebook-github-bot