Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3363528
D10161.id34203.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
606 B
Referenced Files
None
Subscribers
None
D10161.id34203.diff
View Options
diff --git a/lib/utils/sequential-promise-resolver.js b/lib/utils/sequential-promise-resolver.js
--- a/lib/utils/sequential-promise-resolver.js
+++ b/lib/utils/sequential-promise-resolver.js
@@ -1,5 +1,7 @@
// @flow
+import { ignorePromiseRejections } from './promises.js';
+
class SequentialPromiseResolver<Result> {
onResolve: Result => Promise<mixed>;
promises: Array<Promise<?Result>> = [];
@@ -11,7 +13,7 @@
add(promise: Promise<?Result>) {
this.promises.push(promise);
- this.spinPromises();
+ ignorePromiseRejections(this.spinPromises());
}
async spinPromises() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 2:26 AM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2582087
Default Alt Text
D10161.id34203.diff (606 B)
Attached To
Mode
D10161: [lib] Wrap spinPromises in ignorePromiseRejections
Attached
Detach File
Event Timeline
Log In to Comment