28 karma · joined September 10, 2021
> [1] am currently heading to a similar path
I work as programmer with salary equivalent of ~7500$/yr. Around this area, this feeds the family fine, me and spouse. No child. Really little savings.
Recently spouse got cancer. No personal insurance due to limited salary--even now. We, through our govt. has ok healthcare coverage but arguably weak service. The thing is my employer healthcare is just too good, I just need to worry with logistics.
I am afraid of switching job since I'm worry I may not be able to cover my spouse h/c & medication anymore (~250$/mo minimum, usually more with sudden ER visit, which currently I don't really have to think about). However the rise is so insignificant y/y or promotion wise, I may have as well content with similar pay for years to come. Multiple jobs are risky.
Anyone having similar problem? Any suggestions on what I should do/consider?
Usually you want a recurring task that start after the previous invocation finished. Recursive setTimeout is the straight forward choice, while setInterval may require you to cancel the interval, making you just reimplementing setTimeout.
Scheduling task in setInterval will run the task every interval time set regardless the previous task has finihsed or not. This in turn will starve your hardware if the function could not finish before the next execution begin.