MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / PostDelayTask

Method PostDelayTask

src/render/plugin_interface/gr_plugin_context.cpp:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 void GrPluginContext::PostDelayTask(std::function<void()>&& task, int delay) {
42 QTimer::singleShot(delay, [t = std::move(task)]() {
43 t();
44 });
45 }
46
47 void GrPluginContext::StartTimer(int millis, std::function<void()>&& cbk) {
48 if (timer_) {

Callers 1

OnMessageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected