Skip Menu |
 

This queue is for tickets about the future CPAN distribution.

Report information
The Basics
Id: 131419
Status: new
Priority: 0/
Queue: future

People
Owner: Nobody in particular
Requestors: DBOOK [...] cpan.org
Cc:
AdminCc:

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



Subject: Option for fmap to continue on failures
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-18304-1578697487-750.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 472
Download (untitled) / with headers
text/plain 472b
Currently fmap acts much like Future->needs_all; on any failure the rest of the iteration is discarded and the overall future fails. It is a common use case to want the iteration to continue to the end regardless, this can be achieved by adding ->else to any returned Future that turns it into some sort of success, but it would be nice to have an option to handle this automatically in fmap. It's difficult to say what the appropriate automatic behavior should be though.


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.