mean I have two promise and after one of them give me a result I wanna abort the other one.
ES6 Promises per se are uncancellable
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race might use that too for what you need
yeah you can race them
Обсуждают сегодня