1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibCore: Add a convenience constructor for CTimer.

new CTimer(250, [] { thing_to_do_every_250_msec(); });
This commit is contained in:
Andreas Kling 2019-04-14 05:44:15 +02:00
parent 2af729a58a
commit a3e8fc3d9c
Notes: sideshowbarker 2024-07-19 14:43:16 +09:00
3 changed files with 11 additions and 4 deletions

View file

@ -6,6 +6,7 @@
class CTimer final : public CObject {
public:
explicit CTimer(CObject* parent = nullptr);
CTimer(int interval, Function<void()>&& timeout_handler, CObject* parent = nullptr);
virtual ~CTimer() override;
void start();