We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ab32a commit 23cffc9Copy full SHA for 23cffc9
README.md
@@ -61,6 +61,16 @@ To **cancel** all *Task*s
61
timer.cancel();
62
```
63
64
+Check if a timer is **empty** - no active *Task*s
65
+```cpp
66
+if (timer.empty()) { /* no active tasks */ }
67
+```
68
+
69
+Get the number of active *Task*s
70
71
+auto active_tasks = timer.size();
72
73
74
Be fancy with **lambdas**
75
```cpp
76
timer.in(1000, [](void*) -> bool { return false; });
@@ -126,6 +136,12 @@ void cancel();
126
136
127
137
/* Returns the ticks until next event, or 0 if none */
128
138
unsigned long ticks();
139
140
+/* Number of active tasks in the timer */
141
+size_t size() const;
142
143
+/* True if there are no active tasks */
144
+bool empty() const;
129
145
130
146
131
147
### Installation
0 commit comments