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

Promise resolve and reject now return Interrupt errors #624

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

mstoykov
Copy link
Contributor

This is so that it can be handled at all.

Previously the error was just not propagated which lead to interrupts not really working with asynchronous code.

Fixes #623

This is so that it can be handled at all.

Previously the error was just not propagated which lead to interrupts
not really working with asynchronous code.

Fixes dop251#623
@mstoykov
Copy link
Contributor Author

I went with a bare minimum change and test. If you have some other cases which you will want to test I will gladly add them.

builtin_promise.go Outdated Show resolved Hide resolved
builtin_promise.go Outdated Show resolved Hide resolved
mstoykov and others added 2 commits October 24, 2024 10:54
@dop251 dop251 merged commit 79f3a7e into dop251:master Oct 24, 2024
4 checks passed
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.

Interrupting while resolving a promise from go looks like nothing went wrong
2 participants