Skip to content

Conversation

@Amanieu
Copy link
Owner

@Amanieu Amanieu commented Oct 10, 2025

force_unwind currently panics if, after starting the unwind, the coroutine suspends itself or returns normally. Instead of this, we now rethrow the exception on suspend until the coroutine has finished, and then discard any returned value.

Fixes #57

`force_unwind` currently panics if, after starting the unwind, the
coroutine suspends itself or returns normally. Instead of this, we now
rethrow the exception on suspend until the coroutine has finished, and
then discard any returned value.
@Amanieu Amanieu merged commit 7476da2 into master Oct 11, 2025
24 of 26 checks passed
@Amanieu Amanieu deleted the unwind-harder branch October 11, 2025 11:34
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.

force_unwind and panic!"the ForcedUnwind panic was caught and not rethrown"

2 participants