MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / called_async

Function called_async

test/core/test_promise.c:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static void called_async(void* data) {
73 emscripten_console_log("Hello from a callback");
74 em_promise_t promise = data;
75 emscripten_promise_resolve(promise, EM_PROMISE_FULFILL, NULL);
76 emscripten_promise_destroy(promise);
77}
78
79static em_promise_result_t
80test_promisify(void** result, void* data, void* value) {

Callers

nothing calls this directly

Calls 1

emscripten_console_logFunction · 0.85

Tested by

no test coverage detected