#3495 new
Bob MacCallum

Add an option for PeriodicalExecuter to trigger immediately

Reported by Bob MacCallum | July 28th, 2013 @ 11:16 PM

as per https://twitter.com/bobmaccallum/status/361140439107121152

Default behaviour is for the callback to be executed for the first time after the first sleep period, but it would be nice if there was an option for it to trigger immediately as well.

Simple (but undocumented) workaround is:

var pex = new PeriodicalExecuter(function(pe) {
   // stuff here 
}, 5);

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket