Skip to content

Conversation

rubennorte
Copy link
Contributor

Summary:
Changelog: [internal]

We recently prevented tasks that run via runTask to synchronously call runTask because the execution is synchronous and we can't nest tasks in the event loop (D67107664 / #48235).

This adds scheduleTask to schedule tasks (also within tasks) with the right expectations (the task will not run synchronously on that call but at the right time).

It also adds runWorkLoop so we can run scheduled tasks if they're not scheduled from an already running task.

Differential Revision: D67275518

@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 Dec 16, 2024
@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Dec 16, 2024
Summary:

Changelog: [internal]

We recently prevented tasks that run via `runTask` to synchronously call `runTask` because the execution is synchronous and we can't nest tasks in the event loop (D67107664 / facebook#48235).

This adds `scheduleTask` to schedule tasks (also within tasks) with the right expectations (the task will not run synchronously on that call but at the right time).

It also adds `runWorkLoop` so we can run scheduled tasks if they're not scheduled from an already running task.

Differential Revision: D67275518
@facebook-github-bot
Copy link
Contributor

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

rubennorte added a commit to rubennorte/react-native that referenced this pull request Dec 16, 2024
Summary:

Changelog: [internal]

We recently prevented tasks that run via `runTask` to synchronously call `runTask` because the execution is synchronous and we can't nest tasks in the event loop (D67107664 / facebook#48235).

This adds `scheduleTask` to schedule tasks (also within tasks) with the right expectations (the task will not run synchronously on that call but at the right time).

It also adds `runWorkLoop` so we can run scheduled tasks if they're not scheduled from an already running task.

Differential Revision: D67275518
Summary:

Changelog: [internal]

We recently prevented tasks that run via `runTask` to synchronously call `runTask` because the execution is synchronous and we can't nest tasks in the event loop (D67107664 / facebook#48235).

This adds `scheduleTask` to schedule tasks (also within tasks) with the right expectations (the task will not run synchronously on that call but at the right time).

It also adds `runWorkLoop` so we can run scheduled tasks if they're not scheduled from an already running task.

Differential Revision: D67275518
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 16, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 358fd38.

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