| 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 | { |
no test coverage detected