: asleep¶
Sleep for the given duration asynchronously (without blocking the main thread)
Usage: : asleep [OPTIONS] <IDLE_TIME> [SLEEP_MODE]
Arguments¶
| Name | Description | Possible values | Default |
|---|---|---|---|
<IDLE_TIME> | The duration to sleep asynchronously for (in seconds) | ||
<SLEEP_MODE> | The sleep mode to use. Use Tokio if you want real time. Use Godot if you want the duration to be affected by time scale, lag, and delta smoothing | tokio, godot | tokio |
Options¶
| Name | Description | Possible values | Default |
|---|---|---|---|
-b--busy-time | If set, will also sleep synchronously (blocking the main thread) for the given duration (in seconds, rounded to nearest millisecond) |