Skip to content

RuntimeExecutor: Remove noexcept from sync ui thread utils#51514

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

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

Conversation

@RSNara
Copy link
Contributor

@RSNara RSNara commented May 22, 2025

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-bot facebook-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
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@RSNara RSNara force-pushed the export-D75183993 branch 2 times, most recently from 6caf8fe to 71eb0bc Compare May 23, 2025 19:33
@facebook-github-bot
Copy link
Contributor

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

@RSNara RSNara force-pushed the export-D75183993 branch from 71eb0bc to f5bea38 Compare May 23, 2025 22:00
@facebook-github-bot
Copy link
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
…51514)

Summary:
Pull Request resolved: facebook#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 RSNara force-pushed the export-D75183993 branch from f5bea38 to 7336824 Compare May 24, 2025 04:22
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: facebook#51429

If we use promises, I believe the code is just easier to understand.

Changelog: [Internal]

Differential Revision: D74941734
@RSNara RSNara force-pushed the export-D75183993 branch from 7336824 to 7687a9b Compare May 27, 2025 16:39
…51514)

Summary:
Pull Request resolved: facebook#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
Contributor

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

@RSNara RSNara force-pushed the export-D75183993 branch from 7687a9b to 483dcdf Compare May 27, 2025 16:44
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 27, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7ef278a.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants