mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Implement asyncMethodCallFail
Summary: The async NativeModule method call event can fail if something goes wrong when we're about do dispatch the method call. Changelog: [Internal] Reviewed By: ejanzer Differential Revision: D22609410 fbshipit-source-id: 699eeb78edfbefa85e417fd82318ae8e4f6f7d90
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9c35b5b8c4
commit
d22a121cb3
@@ -249,6 +249,13 @@ void asyncMethodCallEnd(const char *moduleName, const char *methodName) {
|
||||
}
|
||||
}
|
||||
|
||||
void asyncMethodCallFail(const char *moduleName, const char *methodName) {
|
||||
NativeModulePerfLogger *logger = g_perfLogger.get();
|
||||
if (logger != nullptr) {
|
||||
logger->asyncMethodCallFail(moduleName, methodName);
|
||||
}
|
||||
}
|
||||
|
||||
void asyncMethodCallBatchPreprocessStart() {
|
||||
NativeModulePerfLogger *logger = g_perfLogger.get();
|
||||
if (logger != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user