You are reading a single comment by @VSerain and its replies. Click here to read the full conversation.
  • Hello,
    I wonder if adding a "cron" feature in Espruino or just in Bangle would be a good idea ?

    For my case, i want start a buzz at every hour. I can use setTimeout or setInterval.
    But if many app use setTimeout/Intervale, in internal we check at all loop turn if this timeout is done and if is true, we start the callback.
    It can be memory and cpu intensive.

    If we add a simply cron (just hours and minutes) we have one interval (one minutes) and at all minutes check if many tasks match with this time.

    In memory it would be enough to store the pointer of callback and one string (e.g.: "* 0" all hours at zero minutes).

    What's do you think ?

    Good day,
    Victor

About

Avatar for VSerain @VSerain started