Revert D20464278: Make Lambda function called in NativeModule mutable to improve performance

Differential Revision:
D20464278

Original commit changeset: 846a8bc6c61c

fbshipit-source-id: 71b69687ab3c279ec4e14f633700355af2291705
This commit is contained in:
Valentin Shergin
2020-03-16 16:21:28 -07:00
committed by Facebook GitHub Bot
parent 5296a740a7
commit 44618c80ed
+1 -1
View File
@@ -148,7 +148,7 @@ void CxxNativeModule::invoke(
// mhorowitz #7128529: convert C++ exceptions to Java
messageQueueThread_->runOnQueue(
[method, params = std::move(params), first, second, callId]() mutable {
[method, params = std::move(params), first, second, callId]() {
#ifdef WITH_FBSYSTRACE
if (callId != -1) {
fbsystrace_end_async_flow(TRACE_TAG_REACT_APPS, "native", callId);