Function
Library of functions for the function type.
Functions
InvokeAfter
Invokes function after a delay.
Syntax:
Function.InvokeAfter(f: function, sleep: long)
Parameters
-
f
: A function without arguments with the code to invoke after the delay expired. -
sleep
: Delay in milliseconds before invoking the function.
Example:
Function.InvokeAfter(() -> 1+1, 100)
// Result:
// 2