delay

Function delay 

Source
pub fn delay(duration: Duration)
Expand description

Blocks the current FreeRTOS task for the given amount of time.

ยงCaveats

This function will block the entire task, preventing concurrent execution of async code. When in an async context, it is recommended to use the sleep function in pros_async instead.