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

Should schedule() return anything? #11

Open
smichel17 opened this issue Sep 6, 2018 · 1 comment
Open

Should schedule() return anything? #11

smichel17 opened this issue Sep 6, 2018 · 1 comment

Comments

@smichel17
Copy link
Member

Right now, when you schedule an alarm:

  • If you're trying to schedule it in the past, nothing will happen.
  • If there's an alarm scheduled with the same id, it will be overwritten.

Currently we don't return anything indicating whether the alarm was successfully scheduled or if it overwrote a previous alarm. Should we?

@notjuliee
Copy link
Member

Does it hurt to return a status code? The caller can ignore it if it's unnecessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants