Hi,
Thanks for this great plugin.
Was wondering if it would be possible enhance the polling by returning functions to cancel, pause and restart the polling by hooking to the internal setInterval() { ... }
function call.
Perhaps the poll option can be expanded to an object like:
{
"interval": 1000,
"poller": function(cancel, pause, restart, setInterval) {
this.cancelPoll = cancel;
this.pausePoll = pause;
this.restartPoll = restart;
this.setInterval(500);
...
}
}
and then somewhere in your code have
this.cancelPoll();
this.pausePoll();
this.restartPoll();
etc...
Many thanks!
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too