Skip Menu |

This queue is for tickets about the future CPAN distribution.

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

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

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

Subject: Consider `await` CODEref attribute instead of subclassing method
Download (untitled) / with headers
text/plain 340b
The `->get` force-blocking call needs some waiting operation to work. Currently that's expected as a subclass method. If instead it came via a constructor attribute this might make it easier to avoid subclassing Future simply to provide that, so instead that can be used to supply new features (e.g. incremental progress?) -- Paul Evans
Download (untitled) / with headers
text/plain 799b
On Thu Jan 04 11:43:05 2018, PEVANS wrote: Show quoted text
That was now closed, but this issue remains. Copying text: By doing this we have to be a little more careful in "jenga" situations however. Under a jenga tree, it would be quite sufficient for any of the event looplets to provide the 'delay' API, because the tree provides the guarantee that any of them has a sleep ability. It's not necessarily given that any arbitrarily chosen looplet will be able to implement the await ability however. In general the await ability would need to be provided by the root looplet in the jenga tree. Exactly how they determine which one that is remains an open design question - it isn't necessarily the first, nor the final, loaded module. -- Paul Evans

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

Please report any issues with to