Skip to content

Commit

Permalink
docs for unstable_enableSyncVoidMethods
Browse files Browse the repository at this point in the history
Summary:
Changelog: [Internal]

adding docs to unstable_enableSyncVoidMethods config related methods

Differential Revision: D50160367
  • Loading branch information
philIip authored and facebook-github-bot committed Oct 11, 2023
1 parent 9f51a0c commit c74f26a
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 c74f26a

Please sign in to comment.