提交 8c4a4c10 编写于 作者: J Johannes Rieken

debt - use Promise#race instead of TPromise#any

上级 eb1d9586
......@@ -188,7 +188,7 @@ export class ExtensionHostMain {
// Give extensions 1 second to wrap up any async dispose, then exit
setTimeout(() => {
TPromise.any<void>([timeout(4000), extensionsDeactivated]).then(() => exit(), () => exit());
Promise.race([timeout(4000), extensionsDeactivated]).then(() => exit(), () => exit());
}, 1000);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册