Skip to content

Add IEventLoopControl APIs to hermes-interface (#55431)#55431

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

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

Conversation

@tsaichien
Copy link
Copy Markdown
Contributor

@tsaichien tsaichien commented Feb 5, 2026

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.

Reviewed By: lavenzg

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
Copy Markdown

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.

@meta-codesync meta-codesync Bot changed the title Add IEventLoopControl APIs to hermes-interface Add IEventLoopControl APIs to hermes-interface (#55431) Apr 28, 2026
tsaichien added a commit to tsaichien/react-native that referenced this pull request Apr 28, 2026
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.

Reviewed By: lavenzg

Differential Revision: D91905969
tsaichien added a commit to tsaichien/react-native that referenced this pull request Apr 28, 2026
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.

Reviewed By: lavenzg

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.

Reviewed By: lavenzg

Differential Revision: 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