react-native-website icon indicating copy to clipboard operation
react-native-website copied to clipboard

Documentation requiresMainQueueSetup missing

Open teameh opened this issue 8 years ago • 11 comments

As asked before. There are no docs on requiresMainQueueSetup.

The docs only state:

For example, if it needs to use a main-thread-only iOS API, it should specify this via:

- (dispatch_queue_t)methodQueue {
    return dispatch_get_main_queue();
} 

But this seems to be not enough since I'm getting:

2018-11-08 10:31:12.591 [warn][tid:main][RCTModuleData.mm:67] 
Module XXXXXX requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. 
In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.

I could write some docs if someone can explain why - (dispatch_queue_t)methodQueue is not enough and in which cases one would need to implement requiresMainQueueSetup as well.

teameh avatar Nov 08 '18 09:11 teameh

+1

renankof avatar Feb 11 '19 12:02 renankof

+1

stormriderc avatar Feb 11 '19 12:02 stormriderc

+1

operfildoluiz avatar Feb 11 '19 12:02 operfildoluiz

+1

ghost avatar Feb 11 '19 12:02 ghost

Thanks for reporting.

Please use GitHub's reactions.

charpeni avatar Feb 11 '19 23:02 charpeni

We can close this issue now that #813 landed.

EricAtPlanGrid avatar Mar 20 '19 15:03 EricAtPlanGrid

Ah that is great 😃👍.

But not completely, since methodQueue is still not explained. can we reopen it?

teameh avatar Mar 20 '19 21:03 teameh

👋 Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 16 '20 10:08 stale[bot]

Ping @charpeni @EricAtPlanGrid

teameh avatar Aug 19 '20 11:08 teameh

👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jan 19 '22 01:01 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

github-actions[bot] avatar Jan 26 '22 01:01 github-actions[bot]