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

防止 awaitable_detached 在 完全 detach 模式下吞异常 #39

Closed
wants to merge 1 commit into from

Conversation

microcai
Copy link
Member

awaitable_detached 的 await_resume 只有被 co_await 下才会调用。其存储的异常才可以被重新抛出。

如果没被 co_await, 则其存储的异常就彻底被吞没了。
重抛之以解决吞没问题

@microcai microcai force-pushed the fix_detached_exception branch from 84cf6e6 to aebb7ab Compare October 18, 2024 01:13
@microcai microcai force-pushed the fix_detached_exception branch from aebb7ab to 564b4cc Compare October 18, 2024 01:17
@microcai microcai self-assigned this Oct 18, 2024
@microcai microcai force-pushed the fix_detached_exception branch 2 times, most recently from 7790fda to 564b4cc Compare October 18, 2024 05:54
@microcai microcai closed this Oct 18, 2024
@microcai microcai deleted the fix_detached_exception branch October 18, 2024 06:02
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.

1 participant