I noticed the following in the code base I'm currently working with and am not sure what the point of it is:
public spinnerPromise: Promise<void> = new Promise<void>(() => { return; });
Is there a reason to have an empty Promise? This reminds me of doing a
setTimeOut(fn, 0)
and I'm wondering if it has a similar effect.
Thanks