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 sometimes is executed asynchronously #3527
Comments
From @bbkrOn Rakudo Star 2014.08: $ perl6 -e 'my $job1 = start { say "started job 1"; sleep 4; say "finished job 1"}; my $job2 = start { say "started job 2"; sleep 4; say "finished job 2"}; await $job1, $job2' In most cases I get expected result: started job 1 But sometimes promises are executed synchronously: started job 1 Looks like they are assigned to the same thread despite other threads being unused. My common-sense assumption was "If I spawn less Promises than available threads they will be ALL executed in parallel". |
From @bbkrOn Rakudo Star 2014.09 with MoarVM promises are executed asynchronously. But i get randomly one of following errors: Unhandled exception: non-invokable object is non-invokable Unhandled exception: Cannot assign to a readonly variable or a value |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrNew random error after running this code: $ perl6 --version Unhandled exception: Cannot invoke this object (REPR: P6opaque, cs = 0) |
From @bbkrI am no longer getting this bug on: This is perl6 version 2014.10-114-gf8f6feb built on MoarVM version 2014.10-17-g05b25a6 Ticket should be marked as testneeded or just closed? |
From @zoffixznetTests added: Raku/roast@1bf2a1b1a5 |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#122803 (status was 'resolved')
Searchable as RT122803$
The text was updated successfully, but these errors were encountered: