Module Timer

Allows scheduling of functions to be executed after an amount of time passes.

The timing is based on the Update call-in of widgets.

Functions

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.


Functions

Timer.delay (f)
Delays the invocation of the function by one rendering frame.

Parameters:

  • 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.

Remarks:

    If the user intends to utilize Timer in any way, it should inject itself.

Parameters:

  • widget widget The widget to inject.
generated by LDoc 1.4.3 Last updated 2017-06-01 23:07:48