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
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-5234-1511884213-808.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: 340
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
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-5234-1511884213-808.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-5234-1511884213-808.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-9167-1515084185-535.123778-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 75
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-9167-1515084185-535.123778-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-5234-1511884213-808.0-0-0 [...] rt.cpan.org> <rt-4.0.18-9167-1515084185-535.123778-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-25382-1554901026-1469.123778-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 799
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 Perl.org infrastructure.

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