Another alternative is to use…
Which will give you an excellent implementation of a promise.
This might be exactly what you are looking for!
There’s a little discussion here: Proposal: Function.await
Another alternative is to use…
Which will give you an excellent implementation of a promise.
This might be exactly what you are looking for!
There’s a little discussion here: Proposal: Function.await