19{
20 if constexpr (std::is_same_v<promise_handle, Vruta::graphics_promise>) {
21 if constexpr (
requires {
h.promise().next_frame; }) {
24 }
25 } else {
26 if constexpr (
requires {
h.promise().domain_mismatch_error(
"",
""); }) {
27 h.promise().domain_mismatch_error(
"FrameDelay",
28 "This awaitable is not compatible with the current coroutine promise type.");
29 }
30 }
31}
@ FRAME_BASED
Frame-rate delay (Graphics domain)