vex_sdk::task

Function vexTaskSleep

Source
pub unsafe fn vexTaskSleep(time: u32)
Expand description

Sets the current task to sleep for the specified amount of time (in milliseconds).

Derived from https://github.com/jpearman/vexcode-lvgllib6_X/blob/8ead3dab49665d4c98225d612672be28c7c2a425/src/v5lvgl.c#L18

ยงSafety

Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.