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
explicit .resume on Broken promise exception "not resumable", implicit fine #6081
Comments
From @skidsIn abf6caf0 the ability to explicitly .resume an exception caused by awaiting a broken $ perl6 -e 'my $p = Promise.new; my $b = 0; my $w = start { await($p); CATCH { default { $b = 1; .resume } } }; $p.break; await($w); $b.say' Tried to get the result of a broken Promise Original exception: bri@atlas:~/git/perl6-xcb$ perl6 -e 'my $p = Promise.new; my $b = 0; my $w = start { await($p); CATCH { default { $b = 1; } } }; $p.break; await($w); $b.say' various bot output links at: |
From @timoYou might be confusing resuming an exception with leaving the CATCH When you leave the block after having matched the exception successfully When you call .resume on an exception, it will continue running the code Here's two code examples, one with resume, one without (exceptions perl6 -e 'sub throws() { die "oh no"; say "inside &throws, after perl6 -e 'sub throws() { die "oh no"; say "inside &throws, after Note also that the CATCH block is something "attached to" the block that I'm thinking this is NOTABUG and can be closed, though perhaps the docs On 16/02/17 05:02, Brian S. Julin (via RT) wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
From @skidsOn Thu, 16 Feb 2017 03:07:23 -0800, timo wrote:
OK. But that just means this exception type has suddenly become |
Migrated from rt.perl.org#130793 (status was 'open')
Searchable as RT130793$
The text was updated successfully, but these errors were encountered: