debt - Thenable -> Promise

This commit is contained in:
Johannes Rieken
2018-12-13 11:30:26 +01:00
parent 29dd4e77de
commit 653280d133
411 changed files with 2370 additions and 2366 deletions

View File

@@ -47,7 +47,7 @@ export class NodeCachedDataCleaner {
readdir(nodeCachedDataRootDir).then(entries => {
const now = Date.now();
const deletes: Thenable<any>[] = [];
const deletes: Promise<any>[] = [];
entries.forEach(entry => {
// name check

View File

@@ -149,8 +149,8 @@ function main(server: Server, initData: ISharedProcessInitData, configuration: I
});
}
function setupIPC(hook: string): Thenable<Server> {
function setup(retry: boolean): Thenable<Server> {
function setupIPC(hook: string): Promise<Server> {
function setup(retry: boolean): Promise<Server> {
return serve(hook).then(null, err => {
if (!retry || platform.isWindows || err.code !== 'EADDRINUSE') {
return Promise.reject(err);