Closed maximedupre closed 5 years ago
I will try it later, thanks!
Maybe that the .then
is added as a micro task once the decoding is done?
@maximedupre, yes, you are right, when decodeAudioData
is finished, hasPendingMicrotasks
will be true.
Shouldn't there be a pending microtrask as soon as the .then
is called?
No, this is how promise worked, microtask only scheduled when promise is resolved or rejected.
Using the promise version of
decodeAudioData
returns a zone aware promise, but since this method has not been patched, the operation is not included in the list of microtasks.Using zone
v0.8.26