MCPcopy Create free account
hub / github.com/bcndev/bytecoin / Timer

Method Timer

src/platform/Network.hpp:157–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 typedef std::function<void()> after_handler;
156
157 explicit Timer(after_handler &&a_handler) : a_handler(std::move(a_handler)), impl(nullptr) {}
158 ~Timer() { cancel(); }
159
160 void once(float after_seconds); // cancels previous once first

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected