workers: add periodic sync API
Based on the Periodic Sync Web API
This is a pretty simple addition. Periodic syncs are effectively
a collection of named interval timers that will, from the thread
that created the worker, trigger a periodicSync
event within the
worker on the parentPort
. This can be used, for instance, to
schedule various regular synchronization tasks within the worker.
Signed-off-by: James M Snell jasnell@gmail.com
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines