Skip to content

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

Closed
tsaichien wants to merge 1 commit into
react:mainfrom
tsaichien:export-D91905969
Closed

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

Conversation

@tsaichien

@tsaichien tsaichien commented Feb 5, 2026

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

Changelog: [Internal]

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

meta-codesync Bot commented Feb 5, 2026

Copy link
Copy Markdown

@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
@tsaichien tsaichien force-pushed the export-D91905969 branch 2 times, most recently from 3b16317 to 840edec Compare April 30, 2026 18:49
tsaichien added a commit to tsaichien/react-native that referenced this pull request Apr 30, 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 tsaichien force-pushed the export-D91905969 branch from 840edec to 9148d69 Compare May 7, 2026 19:07
tsaichien added a commit to tsaichien/react-native that referenced this pull request May 7, 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.

Changelog: [Internal]

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.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D91905969
@tsaichien tsaichien force-pushed the export-D91905969 branch from 9148d69 to 5f84317 Compare May 7, 2026 19:49
meta-codesync Bot pushed a commit to facebook/hermes that referenced this pull request May 7, 2026
Summary:
X-link: react/react-native#55431

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.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D91905969

fbshipit-source-id: c006d613862611bb01860a38a99c8881acd0355c
meta-codesync Bot pushed a commit to facebook/hermes that referenced this pull request May 7, 2026
Summary:
X-link: react/react-native#55431

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.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D91905969

fbshipit-source-id: c006d613862611bb01860a38a99c8881acd0355c
@meta-codesync meta-codesync Bot closed this in 18ef5d1 May 7, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 7, 2026
@meta-codesync

meta-codesync Bot commented May 7, 2026

Copy link
Copy Markdown

This pull request has been merged in 18ef5d1.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @tsaichien in 18ef5d1

When will my fix make it into a release? | How to file a pick request?

meta-codesync Bot pushed a commit to facebook/hermes that referenced this pull request May 7, 2026
Summary:
X-link: react/react-native#55431

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.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D91905969

fbshipit-source-id: c006d613862611bb01860a38a99c8881acd0355c
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants