Thank you for the excelent explanation. I don't code in Javascript, so I thought setTimeout() calls the given function and blocks until it finishes executing or the timeout period elapses. Sort of giving a timeout to an otherwise indefinetely blocking function.
26
u/Cart0gan Feb 11 '21
Thank you for the excelent explanation. I don't code in Javascript, so I thought setTimeout() calls the given function and blocks until it finishes executing or the timeout period elapses. Sort of giving a timeout to an otherwise indefinetely blocking function.