MCPcopy Create free account
hub / github.com/Snapchat/Valdi / async

Method async

valdi_core/src/valdi_core/cpp/Threading/ThreadedDispatchQueue.cpp:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void ThreadedDispatchQueue::async(Valdi::DispatchFunction function) {
80 auto task = _taskQueue->enqueue(std::move(function));
81
82 if (VALDI_UNLIKELY(task.isFirst)) {
83 startThread();
84 }
85}
86
87task_id_t ThreadedDispatchQueue::asyncAfter(Valdi::DispatchFunction function,
88 std::chrono::steady_clock::duration delay) {

Callers

nothing calls this directly

Calls 1

enqueueMethod · 0.45

Tested by

no test coverage detected