Ability to abort asynchronous call
问题 I'm using babeljs with es7 style async/await methods. I have a main script that will call a async method on an array of objects that all return promises. I use Promise.all() to wait for all of those to return, however, these tasks could take a long time and if they exceed a threshold I would like to abort all of them, and the task handle that in an appropriate way. Is there anyway to accomplish such a thing? Currently the only way that I can think of is by spawning a process that does the