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
Supply .throttle hangs/wrong results #5562
Comments
From liukan@360.cnAs shown below, of the 3 consecutive times the following code was run, 2 hung. 8< ======================= 8< use v6; my $s = Supply.from-list(^6); $t.act: -> $v { $v.result.say }; 8< ======================= 8< liukan@candor:~/Code$ time perl6 foo real 0m6.188s real 0m33.380s real 0m33.155s liukan@candor:~/Code$ perl6 -v liukan@candor:~/Code$ uname -a |
From liukan@360.cn[15:01] <kanl> Supply . throttle returns a supply of promises. How does each promise correspond to the original items? e.g. my $s = Supply.from-list( |@a ).throttle: 3, -> $v { do-something-with( $a ) }; $s.tap: -> $v { how-to-figure-out-relation-here() } - kan |
Migrated from rt.perl.org#128906 (status was 'new')
Searchable as RT128906$
The text was updated successfully, but these errors were encountered: