Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ asyncGetMyClass
Function
asyncGetMyClass
test/embind/embind_jspi_test.cpp:42–45 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
40
}
41
42
MyClass* asyncGetMyClass() {
43
emscripten_sleep(0);
44
return new MyClass();
45
}
46
47
EM_ASYNC_JS(void, jsSuspend, (), {
48
await new Promise(resolve => {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected