Skip to content

workers: add periodic sync API

Rodrigo Muino Tomonari requested to merge github/fork/jasnell/periodicsync into master

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading