|
FastLED 3.10.6
|
|
inline |
Await promise completion in a coroutine (Trampoline to platform implementation)
| T | The type of value the promise resolves to |
| p | The promise to await |
This is the public API for awaiting promises in coroutines. It delegates to the platform-specific implementation in fl::platforms::await().
REQUIREMENTS:
SAFETY: Unlike await_top_level(), this does NOT busy-wait. The coroutine is suspended by the OS scheduler and wakes when the promise completes, with zero CPU overhead.
| timeout_ms | Wall-clock budget before the wait returns an error rather than continuing to poll. Defaults to fl::platforms::kAwaitDefaultTimeoutMs; see FastLED#4369 for why the wait is bounded at all. |
Definition at line 307 of file executor.h.
References fl::FL_NO_EXCEPT.