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

Method PostUIDelayTask

src/render/plugin_interface/gr_plugin_interface.cpp:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 }
191
192 void GrPluginInterface::PostUIDelayTask(int ms, std::function<void()>&& task) {
193 this->PostUITask([ms, t = std::move(task)]() {
194 QTimer::singleShot(ms, [=]() {
195 t();
196 });
197 });
198 }
199
200 void GrPluginInterface::RegisterEventCallback(const GrPluginEventCallback& cbk) {
201 event_cbk_ = cbk;

Callers

nothing calls this directly

Calls 1

PostUITaskMethod · 0.95

Tested by

no test coverage detected