MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / aVoidAPI

Method aVoidAPI

test/exec/test_create.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void aVoidAPI(void* context, void (*completed)(void* context))
60 {
61 // Execute some work asynchronously on some other thread. When its
62 // work is finished, pass the result to the callback.
63 scope_.spawn(ex::starts_on(pool_.get_scheduler(),
64 ex::then(ex::just(), [=]() noexcept { completed(context); })));
65 }
66 };
67
68 TEST_CASE_METHOD(create_test_fixture,

Callers

nothing calls this directly

Calls 3

thenFunction · 0.85
spawnMethod · 0.80
get_schedulerMethod · 0.45

Tested by

no test coverage detected