Skip to content

Commit

Permalink
Rename requiresMainThreadSetup -> requiresMainQueueSetup in code comm…
Browse files Browse the repository at this point in the history
…ent (#22328)

Summary:
Update reference to property in code comment in `RCTBridgeModule`. There is no such thing as `requiresMainThreadSetup` in the codebase. Its called `requiresMainQueueSetup` now.
Pull Request resolved: #22328

Differential Revision: D13115352

Pulled By: shergin

fbshipit-source-id: 511d627388b51029821c4b1ddf4caac30e573040
  • Loading branch information
karanjthakkar authored and facebook-github-bot committed Nov 18, 2018
1 parent 346c9d5 commit 1fa56a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Base/RCTBridgeModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ RCT_EXTERN void RCTRegisterModule(Class); \
* for the lifetime of the bridge, so it is not suitable for returning dynamic values, but may be used for long-lived
* values such as session keys, that are regenerated only as part of a reload of the entire React application.
*
* If you implement this method and do not implement `requiresMainThreadSetup`, you will trigger deprecated logic
* If you implement this method and do not implement `requiresMainQueueSetup`, you will trigger deprecated logic
* that eagerly initializes your module on bridge startup. In the future, this behaviour will be changed to default
* to initializing lazily, and even modules with constants will be initialized lazily.
*/
Expand Down

0 comments on commit 1fa56a0

Please sign in to comment.