MCPcopy Create free account
hub / github.com/Snapchat/djinni / check_async_interface

Method check_async_interface

test-suite/generated-src/wasm/NativeTestHelpers.cpp:297–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 }
296}
297em::val NativeTestHelpers::check_async_interface(const em::val& w_i) {
298 try {
299 auto r = ::testsuite::TestHelpers::check_async_interface(::djinni_generated::NativeAsyncInterface::toCpp(w_i));
300 return ::djinni::FutureAdaptor<::djinni::String>::fromCpp(std::move(r));
301 }
302 catch(const std::exception& e) {
303 return ::djinni::ExceptionHandlingTraits<::djinni::FutureAdaptor<::djinni::String>>::handleNativeException(e);
304 }
305}
306em::val NativeTestHelpers::check_async_composition(const em::val& w_i) {
307 try {
308 auto r = ::testsuite::TestHelpers::check_async_composition(::djinni_generated::NativeAsyncInterface::toCpp(w_i));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected