Skip to content

Add IEventLoopControl APIs to hermes-interface#55431

Open
tsaichien wants to merge 1 commit intofacebook:mainfrom
tsaichien:export-D91905969
Open

Add IEventLoopControl APIs to hermes-interface#55431
tsaichien wants to merge 1 commit intofacebook:mainfrom
tsaichien:export-D91905969

Conversation

@tsaichien
Copy link
Contributor

Summary:
Adds ISetEventLoopControl to the Hermes-specific JSI. This interface
specifies an user-defined, thread-safe function to schedule some task
provided by the Hermes VM.

The Hermes VM may use this function to "ask" the integrator to run some
arbitrary task when the integrator has exclusive control of the runtime.
Notably, this is useful for the Hermes implementation of Workers, where
the Worker thread may ask the integrator to process an event.

Differential Revision: D91905969

Summary:
Adds `ISetEventLoopControl` to the Hermes-specific JSI. This interface
specifies an user-defined, thread-safe function to schedule some task
provided by the Hermes VM.

The Hermes VM may use this function to "ask" the integrator to run some
arbitrary task when the integrator has exclusive control of the runtime.
Notably, this is useful for the Hermes implementation of Workers, where
the Worker thread may ask the integrator to process an event.

Differential Revision: D91905969
@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 Feb 5, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 5, 2026

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

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants