Skip Menu |
 

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

Report information
The Basics
Id: 124135
Status: resolved
Priority: 0/
Queue: Future-AsyncAwait

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

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



Subject: Compiletime detection of unsupported constructs
Download (untitled) / with headers
text/plain 517b
The following cannot be supported at runtime, but currently aren't detected at compiletime. Perhaps they should be: foreach our $var { await func() } map { await func() } LIST grep { await func() } LIST At runtime, if they operate only on immediate futures then the fact they're nested inside constructs that can't be suspended/resumed from isn't detected. This can lead to a false sense of correctness in e.g. unit tests, which are more likely to be working on entirely immediate futures. -- Paul Evans
These are now detected at compiletime in version 0.27. -- Paul Evans


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.