Here's my situation, my goal is to have a function execute after x amount of time, now setTimeout()
works cool for that except it unreliable in my use case, I've also considered using Date.now()
and doing a check every second to see if x amount of time has passed but that's very unrealistic in my use case also, I'm willing to try any suggestions!
I'd like to add that my use case is setting a reminder from a function that I would have made, I've got access to a key-value database and this solution needs to work even if my process is killed then reopened.