Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement while(co_await next_frame) support #85

Open
ImmutableOctet opened this issue Jul 15, 2024 · 0 comments
Open

Implement while(co_await next_frame) support #85

ImmutableOctet opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
C++ Script API Feature New feature or request Good practice Indicates a proposed change that would be seen as good practice Idea Ideas, concepts, etc. (for features without a clear scope yet) module: engine For features that involve the `engine` module. (optional)

Comments

@ImmutableOctet
Copy link
Owner

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);
@ImmutableOctet ImmutableOctet added Feature New feature or request Good practice Indicates a proposed change that would be seen as good practice Idea Ideas, concepts, etc. (for features without a clear scope yet) module: engine For features that involve the `engine` module. (optional) C++ Script API labels Jul 15, 2024
@ImmutableOctet ImmutableOctet self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Script API Feature New feature or request Good practice Indicates a proposed change that would be seen as good practice Idea Ideas, concepts, etc. (for features without a clear scope yet) module: engine For features that involve the `engine` module. (optional)
Projects
None yet
Development

No branches or pull requests

1 participant