Skip to content

Commit b2b9b98

Browse files
lavenzgfacebook-github-bot
authored andcommitted
Easy: Update IEventLoopControl::scheduleTask doc comment
Summary: Make it clear that the integrator needs to guarantee the Runtime is alive when running task. Differential Revision: D120562343
1 parent a9307d8 commit b2b9b98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/react-native/ReactCommon/jsi/jsi/hermes-interfaces.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class Debugger;
3535
struct IEventLoopControl {
3636
/// `scheduleTask` is a function used by the caller (the Runtime) to schedule
3737
/// some \p task. The scheduled task may perform VM operations. Thus, the
38-
/// integrator must only run the tasks when it had exclusive access to the
39-
/// Runtime.
38+
/// integrator must only run the tasks when the Runtime is alive and it has
39+
/// exclusive access to it.
4040
virtual void scheduleTask(const std::function<void()>& task) = 0;
4141
/// Used by the caller (the Runtime) to register a new source that can
4242
/// schedule new work via `scheduleTask`. This method return an uint64

0 commit comments

Comments
 (0)