mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
Unwind async/await chains (#957)
*Cleanup several spots where runtime.run() no longer needs to be awaited, now that #928 is merged.
This commit is contained in:
@@ -176,7 +176,7 @@ export class PyScriptApp {
|
||||
|
||||
this.logStatus('Setting up virtual environment...');
|
||||
await this.setupVirtualEnv(runtime);
|
||||
await mountElements(runtime);
|
||||
mountElements(runtime);
|
||||
|
||||
// lifecycle (6.5)
|
||||
this.plugins.afterSetup(runtime);
|
||||
@@ -188,7 +188,7 @@ export class PyScriptApp {
|
||||
// lifecycle (8)
|
||||
createCustomElements(runtime);
|
||||
|
||||
await initHandlers(runtime);
|
||||
initHandlers(runtime);
|
||||
|
||||
// NOTE: runtime message is used by integration tests to know that
|
||||
// pyscript initialization has complete. If you change it, you need to
|
||||
|
||||
Reference in New Issue
Block a user