I have two primefaces polls in the same page.
One of them (pollLg) has a longer interval time (30 seconds), while the other (pollSm) has a smaller interval (8 seconds).
When pollLg starts, I'd like pollSm to "pause" and then continue (remembering the time it was interrupted) after pollLg finishes its task.
If I call PF('pollSm').stop() and PF('pollSm').start() inside pollLg task, pollSm would be executed again only after 8 seconds.
For example, when the web page opens, I have:
pollSm executions: 8sec, 16sec, 24sec (pollLg will execute here and stop pollSm)
When pollLg finishes, then pollSm would execute only after 8 seconds, and not 2 seconds (it was interrupted with 6 seconds)
Is there any easy way to accomplish this?