Skip to content

Implement while(co_await next_frame) support #85

@ImmutableOctet

Description

@ImmutableOctet

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);

Metadata

Metadata

Labels

C++ Script APIFeatureNew feature or requestGood practiceIndicates a proposed change that would be seen as good practiceIdeaIdeas, concepts, etc. (for features without a clear scope yet)module: engineFor features that involve the `engine` module. (optional)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions