Skip Menu |
 

This queue is for tickets about the Reflex CPAN distribution.

Report information
The Basics
Id: 83718
Status: resolved
Priority: 0/
Queue: Reflex

People
Owner: Nobody in particular
Requestors: MBETHKE [...] cpan.org
Cc:
AdminCc:

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



Download (untitled) / with headers
text/plain 573b
Reflex::Role::Interval has method_start documented but not implemented. Using "auto_start => 1" it works fine, but with "auto_start => 0" there seems to be no way to start the timer. I'm trying to run a whole bunch of Interval timers, up to a couple thousand, and as quite a few will have the same interval I don't want them to expire all at the same time but spread out a bit. I thus need them to start after a random delay that I'm trying to achive with a temporary Reflex::Timeout created in BUILD and then disposed of after it has fired and started the Interval timer.
Download (untitled) / with headers
text/plain 459b
It turns out that method_repeat fulfills the same purpose, more or less. I implemented method_start anyway because the semantics are a little different, and using the right one at the right time is more efficient. commit d9d928cdf7fd182e0b0cc17ef9a303cbf7b94c85 Author: Rocco Caputo <rcaputo@cpan.org> Date: Sun Apr 21 16:07:32 2013 -0400 [rt.cpan.org 83718] Implement a start method for Reflex::Role::Interval. Pointed out by CPAN user MBETHKE.


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.