Skip Menu |

This queue is for tickets about the future CPAN distribution.

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

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

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



Subject: Consider `await` CODEref attribute instead of subclassing method
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
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