We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c82605b commit bb52a43Copy full SHA for bb52a43
packages/react-native-executorch/common/rnexecutorch/host_objects/ModelHostObject.h
@@ -375,7 +375,9 @@ template <typename Model> class ModelHostObject : public JsiHostObject {
375
// We need to dispatch a thread if we want the function to be
376
// asynchronous. In this thread all accesses to jsi::Runtime need to
377
// be done via the callInvoker.
378
- threads::GlobalThreadPool::detach([this, promise,
+ threads::GlobalThreadPool::detach([model = this->model,
379
+ callInvoker = this->callInvoker,
380
+ promise,
381
argsConverted =
382
std::move(argsConverted)]() {
383
try {
0 commit comments