Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Algorithm-TokenBucket CPAN distribution.

Report information
The Basics
Id: 28433
Status: resolved
Priority: 0/
Queue: Algorithm-TokenBucket

People
Owner: Nobody in particular
Requestors: anonymous [...] remailer.cyberiade.it
Cc:
AdminCc:

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



Subject: feature request: return expected time to avoid busy waiting
Date: 23 Jul 2007 16:09:24 +0200
To: bug-Algorithm-TokenBucket [...] rt.cpan.org
From: Cyberiade.it Anonymous Remailer <anonymous [...] remailer.cyberiade.it>
it would be most helpful in event-based programming (like POE and Danga::Socket) to avoid having to busy wait or repeatedly sleep and check conform(). it would be better if the expected time to conform would be returned and then the event could be rescheduled according to that time.
From: KAPPA [...] cpan.org
Yuval Kogman implemented this feature in the form of until() method. It will be available in 0.3 version. On Mon Jul 23 10:03:11 2007, anonymous@remailer.cyberiade.it wrote: Show quoted text
> it would be most helpful in event-based programming (like POE > and Danga::Socket) to avoid having to busy wait or repeatedly > sleep and check conform(). it would be better if the expected > time to conform would be returned and then the event could be > rescheduled according to that time.