Skip Menu |

This queue is for tickets about the Future-AsyncAwait CPAN distribution.

Report information
The Basics
Id: 129748
Status: new
Priority: 0/
Queue: Future-AsyncAwait

Owner: Nobody in particular
Requestors: leonerd-cpan [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: await inside map{} and grep{}
Download (untitled) / with headers
text/plain 589b
Currently these forms don't work async sub { map { await ... } } async sub { grep { await ... } } The reason these don't work is that detecting them at runtime is difficult. map and grep consume two scopestack entries each, however there is no corresponding context stack entry for them, unlike there is for any of the other loop-ish constructs. At suspend time we cannot detect these special kinds of scope entry, and thus at resume time we can't know to put them back in place again. This is more complex than the documented reason, of localising $_. -- Paul Evans

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to