Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Create a general scheduling and timing system #1904

Open
ianb opened this issue Aug 10, 2020 · 0 comments
Open

Create a general scheduling and timing system #1904

ianb opened this issue Aug 10, 2020 · 0 comments

Comments

@ianb
Copy link
Contributor

ianb commented Aug 10, 2020

We have timers and paused routines, and it's easy to imagine scheduled tasks, multiple timers, timers interacting with paused routines, etc.

To support this I think we should have a general system.

  • Event types (like timers and pauses) would be subclasses from an abstract base class
  • Events should be serializable and possible to restore, so they can persist over restarts
  • Some queries over events should be possible
  • Possibly there could be an event provider of sorts, that could read from an external calendar or something
  • Events would generally have names
  • Intents around timers and alarms should instantiate these events, or fetch them, but generally the intents will have minimal logic
  • Events can be periodic (like "every day at 8am")
  • When events are restored, and the event happened while the browser was closed, we should be careful about how that is handled (it's hard to know if it should always be ignored or not, without thinking through the specific cases)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant