interval-promise
interval-promise copied to clipboard
Feature: Flag to run once immediately
Sometimes I don't want to have to wait interval before the first call, so intervals should be
- "Now+0*Interval"
- "Now+1*Interval"
- "Now+2*Interval"
instead of
- "Now+1*Interval"
- "Now+2*Interval"
- "Now+3*Interval"
I propose an option like options.runImmediately = true.
What do you think?
I've added support for this as the default in the 2.0 prototype.