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
Promises that are not awaited or .then'd will swallow exceptions. #4808
Comments
From @Juerduse v6; my $foo; my $promise = Promise.new; $promise.keep; # no difference with break sleep 60; |
From @timoTry with this slightly different code to see that it's not about "calling to methods inside promises", just about an exception in a Promise that nobody is interested in (no await, no .then, ...) are silently nommed: use v6; my $foo; my $promise = Promise.new; $promise.keep; # no difference with break # note i added an "await" here. sleep 5; |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznetOn Wed, 02 Dec 2015 13:52:24 -0800, timo wrote:
This version has a `.then` but doesn't explode. Is it meant to then? use v6; # note i added an "await" here. sleep 5; And this one explodes, but there's no location shown for where the error occurs: use v6; # note i added an "await" here. sleep 5; # zoffix@VirtualBox:~/CPANPRC/rakudo$ ./perl6 test.p6 41 This is Rakudo version 2016.11-220-g29b228c built on MoarVM version 2016.11-41-gd2139b5 |
Migrated from rt.perl.org#126787 (status was 'open')
Searchable as RT126787$
The text was updated successfully, but these errors were encountered: