| 5 | namespace Babylon |
| 6 | { |
| 7 | AppRuntime::AppRuntime() |
| 8 | : m_workQueue{std::make_unique<WorkQueue>([this] { RunPlatformTier(); })} |
| 9 | { |
| 10 | Dispatch([this](Napi::Env env) { |
| 11 | JsRuntime::CreateForJavaScript(env, [this](auto func) { m_workQueue->Append(std::move(func)); }); |
| 12 | }); |
| 13 | } |
| 14 | |
| 15 | AppRuntime::~AppRuntime() |
| 16 | { |