A series a Callback helpers that simplify complex behavior.
- Note
- Please see CallbackRunner.h and MultiCallback.h for examples of each.
|
| file | CallbackRunner.h |
| | Automatically execute a 0-arg callback when it goes out of scope.
|
| |
| file | MultiCallback.h |
| | A callback which can be executed multiple times. When a pre-defined limit is reached, then the underlying callback is executed.
|
| |
◆ NewMultiCallback()
A helper function to create a new MultiCallback.
- Parameters
-
| limit | the number of times to run before calling callback |
| callback | the callback to call after limit times |
- Returns
- a pointer to a MultiCallback object