From 6755d3bc0ee5ddbd9f166ef3f87ac76e62057420 Mon Sep 17 00:00:00 2001 From: Mugdha Lakhani Date: Wed, 17 Apr 2019 12:49:41 +0100 Subject: [PATCH] Add Goals and Non-Goals. --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e4b4bd6..a8d373b 100644 --- a/README.md +++ b/README.md @@ -47,10 +47,14 @@ specification to describe this ability as well, and move the document to the sta * todo ## Goals - * todo +* Enable a web app to run tasks periodically on network connectivity. ## Non-goals - * todo +* Triggering events at a specific time is an explicit non-goal. A more generalized alarms API can +enable that. +* Multiple periodic tasks per origin, with varying frequency. The browser decides the cadence of + periodic sync tasks for each origin. An origin can thus register multiple periodic tasks, but the + frequency decided by the browser for the tasks can be the same. # Example code @@ -66,7 +70,7 @@ navigator.serviceWorker.ready.then(registration => { minInterval: 24 * 60 * 60 * 1000, }); }); -```` +``` ## Responding to a periodic sync event ```javascript