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
privateasyncconnect(): Promise<void>{if(this.client)return;// i have to current await below but would like it to just resolve so I don't have to union type itconstclient=awaitthis.container.get(IEncryptionClient);this.client=client;returnawaitthis.client.connect();}
The text was updated successfully, but these errors were encountered:
馃檵 Feature Request
Would like to resolve DI async
馃 Expected Behavior
Resolves to the correct instance
馃槸 Current Behavior
Have to await it myself
Repro link https://stackblitz.com/edit/au2-conventions?file=src%2Fmy-app.html
馃拋 Possible Solution
Await it internally always
馃敠 Context
This will help people easily chunk their code
馃捇 Examples
The text was updated successfully, but these errors were encountered: