mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-30 17:33:21 +08:00
Avoid bounce to same message queue
Reviewed By: astreet Differential Revision: D3269661 fb-gh-sync-id: b22ea45de9e9ddbe8471f10e9c475a5746aec34e fbshipit-source-id: b22ea45de9e9ddbe8471f10e9c475a5746aec34e
This commit is contained in:
committed by
Facebook Github Bot 3
parent
ff431734a4
commit
c6d3ca858e
@@ -37,9 +37,8 @@ Bridge::~Bridge() {
|
||||
}
|
||||
|
||||
void Bridge::loadApplicationScript(const std::string& script, const std::string& sourceURL) {
|
||||
runOnExecutorQueue(*m_mainExecutorToken, [=] (JSExecutor* executor) {
|
||||
executor->loadApplicationScript(script, sourceURL);
|
||||
});
|
||||
// TODO(t11144533): Add assert that we are on the correct thread
|
||||
m_mainExecutor->loadApplicationScript(script, sourceURL);
|
||||
}
|
||||
|
||||
void Bridge::loadApplicationUnbundle(
|
||||
|
||||
Reference in New Issue
Block a user