You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree. Promises would be a big improvement, given TypeScript, ES6, and such.
Look how clean it could be...
publicasynclaunch(opts: LaunchOptions): Promise<any>{try{constlauncher=awaitlaunchpad.getLocalLauncher();constinstance=awaitlauncher.launch('http://localhost:1234',opts);// do things...}catch(ex){// handle rejected promises from getLauncher or launch}}
Cleaner, specification-standard, and better supports async/await.
The text was updated successfully, but these errors were encountered: