Skip to content

Commit bbbc3a0

Browse files
authored
Update README.md
1 parent 1237d9f commit bbbc3a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,15 @@ Include the header file:
5353
In the setup method, add an function callback that gets fired once in the future:
5454

5555
```
56-
// Create a task scheduled once every 100 miliis
56+
// Create a task scheduled once every 100 miliis
5757
taskManager.scheduleOnce(100, [] {
5858
// some work to be done.
5959
});
60+
61+
// Create a task that's scheduled every second
62+
taskManager.scheduleFixedRate(1, [] {
63+
// work to be done.
64+
}, TIME_SECONDS);
6065
```
6166

6267
You can also create a class that extends from `Executable` and schedule that instead. For example:

0 commit comments

Comments
 (0)