Execute After Ms

Signature

bool executeAfterMs(u64 time, function handler)

Description

Asynchronously executes a function after a specific time.

Returns whether the operation was successful (true) or not (false).

Arguments

Time

The delay in milliseconds before executing the callback function.

A value of 0 executes the function immediately, while a positive value specifies the delay.

Handler

The callback function that will be executed.

Last updated