Function
Library of functions for the function type.
Functions
InvokeAfter
Invokes function after a delay
Syntax:
Function.InvokeAfter(code: function, sleep: long)
Parameters
code
: The code to invoke. Must be passed as a function without arguments: refer to the example.
sleep
: Delay in milliseconds before invoking the function.
Example:
Function.InvokeAfter(() -> 1+1, 100) // will return 2 after 100 milliseconds