Skip to content

Implement IEventLoopControl in RuntimeScheduler (#57403)#57403

Closed
lavenzg wants to merge 1 commit into
react:mainfrom
lavenzg:export-D106744175
Closed

Implement IEventLoopControl in RuntimeScheduler (#57403)#57403
lavenzg wants to merge 1 commit into
react:mainfrom
lavenzg:export-D106744175

Conversation

@lavenzg

@lavenzg lavenzg commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary:

Make RuntimeScheduler implement IEventLoopControl.
Wire ReactInstance to register that scheduler on Hermes
runtimes that expose ISetEventLoopControl.
Clear the pointer during teardown before RuntimeScheduler
is destroyed.
Regenerate React Native C++ API snapshots for the public
header change.

Only the modern scheduler have the actual implementation, it's no-op
in the legacy scheduler.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D106744175

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 1, 2026
@meta-codesync

meta-codesync Bot commented Jul 1, 2026

Copy link
Copy Markdown

@lavenzg has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106744175.

Summary:
Pull Request resolved: react#57403

Make `RuntimeScheduler` implement `IEventLoopControl`.
Wire `ReactInstance` to register that scheduler on Hermes
runtimes that expose `ISetEventLoopControl`.
Clear the pointer during teardown before `RuntimeScheduler`
is destroyed.
Regenerate React Native C++ API snapshots for the public
header change.

Only the modern scheduler have the actual implementation, it's no-op
in the legacy scheduler.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D106744175
@meta-codesync meta-codesync Bot changed the title Implement IEventLoopControl in RuntimeScheduler Jul 1, 2026
@lavenzg lavenzg force-pushed the export-D106744175 branch from 40cdb16 to 88a5188 Compare July 1, 2026 22:27
@meta-codesync meta-codesync Bot closed this in f482ab6 Jul 1, 2026
@meta-codesync

meta-codesync Bot commented Jul 1, 2026

Copy link
Copy Markdown

This pull request has been merged in f482ab6.

@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jul 1, 2026
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. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

1 participant