stefanpenner / es6-promise

A polyfill for ES6-style Promises
MIT License
7.3k stars 593 forks source link

Disable use of setImmediate in IE11? #332

Closed maaso closed 6 years ago

maaso commented 6 years ago

Hi,

I was wondering if I could prevent the polyfill from using setImmediate in IE11? We are running into an issue where setImmediate is interrupted by a setTimeout call, causing the Promise to resolve with a big delay.

Workaround is to set window.setImmediate = undefined, but it would be cleaner if we could somehow set this.

maaso commented 6 years ago

Whoops, the setImmediate call was not coming from es6-promise.

My bad!