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)



MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 573
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.11-31814-1366576220-822.83718-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: 459
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.