This is like my second JS code,
other_processing() doesn’t return any promise nor is it aware of the existence of any promise whatsoever, it just seems to be the sanest thing I could do to wait for it to finish… it seems to be processing for a max of 2-4 seconds, so my
other_simple_stuff() will; have to hang on there while waiting for the empty promise.
The promise does nothing important just placing a delay … I, don’t even fully understand it but it works, I tried using recursion but the way I was using it led to undesired side effect and I avoided that route.
“It’s inefficient” I can smell that but I have no idea what I would do to resolve that, if you got new ideas I would appreciate.
I’m asking because the “wait 6 seconds” solution is not a solution to your original problem
It is the only solution that seemed to produce some behavior close to what I wanted, recursion was not even close, this was magical, i spent the whole day searching.