Skip Menu |

This queue is for tickets about the future CPAN distribution.

Report information
The Basics
Id: 124774
Status: resolved
Priority: 0/
Queue: future

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

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



Subject: Consider Future::Queue
Some sort of push/pull queue based on Futures. Basic API would look something like: my $queue = Future::Queue->new; $queue->push( $thing ); # Does this return a Future? $queue->shift->then( ... ); # ->shift's future waits until an item is available and yields it Options to consider: * Bounded maximum number of outstanding items; maybe have ->push return a Future that only completes once it's pushed * Immediate "do or undef" methods; ->shift_or_undef to yield an item immediately or else undef if nothing ready -- Paul Evans
On Wed Mar 14 12:18:27 2018, PEVANS wrote: Show quoted text
> Options to consider:
Also consider * Some sort of priority queueing, where "more important" things can be inserted before less important ones. Inspiration from https://rt.cpan.org/Ticket/Display.html?id=129918 -- Paul Evans
I think this was released in 0.42 =)
Indeed so -- Paul Evans