MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / Append

Method Append

Core/AppRuntime/Source/WorkQueue.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 void WorkQueue::Append(std::function<void(Napi::Env)> callable)
24 {
25 std::scoped_lock lock{m_appendMutex};
26 m_task = m_task.then(m_dispatcher, m_cancelSource, [this, callable = std::move(callable)] {
27 callable(m_env.value());
28 });
29 }
30
31 void WorkQueue::Suspend()
32 {

Callers 2

AppRuntimeMethod · 0.45
DispatchMethod · 0.45

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected