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

coro: redesign how tasks complete and are cleaned up #30

Merged
merged 5 commits into from
Nov 9, 2024

Conversation

Cloudef
Copy link
Owner

@Cloudef Cloudef commented Nov 9, 2024

The previous design was flawed and would not work properly with nested
tasks.

Also added ability to detach tasks.
Later, I want to add more tests and maybe see if the code can be cleaned up more.

Fixes #22

The pointer to kernel timespec struct must stay alive
The previous design was flawed and would not work properly with nested
tasks.

Also added ability to detach tasks.
@Cloudef Cloudef merged commit 2b91534 into master Nov 9, 2024
5 checks passed
@Cloudef Cloudef deleted the coro-refactor branch November 9, 2024 15:06
@Bob-van
Copy link

Bob-van commented Nov 9, 2024

I tested my "example code" from last Issue, still not working, the execution is still stopped indefinitely.
Windows / 0.13 build / regardless of optimalizations

@Cloudef
Copy link
Owner Author

Cloudef commented Nov 10, 2024

@Bob-van Your example code seems to work with io_uring, but not with posix backend. Seems like it showcases a different issue. I'll investigate that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency in coro io.Timeout, sometimes it pauses execution indefinitely
2 participants