ImmutableOctet / glare

Glare: Open Source Game Engine written in Modern C++
MIT License
0 stars 0 forks source link

Implement `while(co_await next_frame)` support #85

Open ImmutableOctet opened 1 month ago

ImmutableOctet commented 1 month ago

Writing co_await with an empty initializer list {} or next_frame should be made to supply a true Boolean value on coroutine resume.

This would enable programming patterns like:

while(co_await next_frame)
{
    // ...
}

do
{
    // ...
}
while(co_await next_frame);