every
Runs task every periodMs from now: the first run is one period away, and a run that comes due while the previous one is still queued is skipped rather than piled up, so a slow task does not produce a burst of catch-up runs. Cancelling the returned subscription stops further runs.
Return
a handle that stops the repeats
Parameters
period Ms
period in milliseconds; must be at least 1, else IllegalArgumentException
task
the work, run on the plugin's worker thread