Skip to content

Commit

Permalink
Add feature flag to control to turn on yielding
Browse files Browse the repository at this point in the history
Summary:
Changelog: [internal]

Add feature flag to turn yielding on/off on Android.

Reviewed By: ShikaSD

Differential Revision: D30487129

fbshipit-source-id: 5d9f60055285cbe7d85493ecaa1dfa17225da9e0
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Sep 6, 2021
1 parent f679891 commit 8c25711
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ void Binding::installFabricUIManager(
if (runtimeSchedulerHolder) {
auto runtimeScheduler = runtimeSchedulerHolder->cthis()->get();
if (runtimeScheduler) {
runtimeScheduler->setEnableYielding(config->getBool(
"react_native_new_architecture:runtimescheduler_enable_yielding_android"));
runtimeExecutor =
[runtimeScheduler](
std::function<void(jsi::Runtime & runtime)> &&callback) {
Expand Down

0 comments on commit 8c25711

Please sign in to comment.