Skip to content

Commit

Permalink
docs for unstable_enableSyncVoidMethods (#40779)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #40779

Changelog: [Internal]

adding docs to unstable_enableSyncVoidMethods config related methods

Reviewed By: mdvacca, cipolleschi

Differential Revision: D50160367

fbshipit-source-id: 6fc825f7225f11909e0749c75d03b2ddadc3d5aa
  • Loading branch information
philIip authored and facebook-github-bot committed Oct 17, 2023
1 parent c7cf3e0 commit 78b226c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public class ReactFeatureFlags {
*/
public static volatile boolean unstable_useTurboModuleInteropForAllTurboModules = false;

/**
* By default, native module methods that return void run asynchronously. This flag will make
* execution of void methods in TurboModules stay on the JS thread.
*/
public static volatile boolean unstable_enableTurboModuleSyncVoidMethods = false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public boolean unstable_shouldRouteTurboModulesThroughLegacyModuleInterop() {
return false;
}

/* Can TurboModule methods that return void execute on the JS thread? */
public boolean unstable_enableSyncVoidMethods() {
return false;
}
Expand Down

0 comments on commit 78b226c

Please sign in to comment.