How about to have a call back beforeStart?
Have a need to do some tasks every time right before the poller start polling Can you add the beforeStart callback?
Thanks
Do you have a use case for this? It seems like, since you have to explicitly call start(), it's trivial to call your routine when you call start(). Is there a reason we should have a callback for it?
But calling start() is a one shot deal in the beginning. After that, the timer periodically fires. Want to have a way to do some “pre-polling” processing or I will image that this will be async call back, it is more of set off some other tasks and then the poller will go onto its normal business and poll the server for data.
In this way, we can leverage the poller’s periodic timer and allow hook to some other tasks in beginning of every poll.
Oh, so you mean pre-fetch, not pre-start. I guess it makes sense to add an event for that.
thanks.