Allows scheduling of functions to be executed after an amount of time passes.
The timing is based on the
Update call-in of widgets.
|Timer.delay (f)||Delays the invocation of the function by one rendering frame.|
|Timer.injectWidget (widget)||Injects a widget, allowing Timer to utilize its call-in for its functionality.|
- Timer.delay (f)
Delays the invocation of the function by one rendering frame.
- f func Function to delay.
- Timer.injectWidget (widget)
Injects a widget, allowing Timer to utilize its call-in for its functionality.
At least one widget has to be injected in order for the rest of Timer to work.
If the user intends to utilize Timer in any way, it should inject itself.
- widget widget The widget to inject.