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
In that particular case you are right. If you want an example where this is relevant check out the testInstancePerDependencyDependenciesWithFactories. In that example async calls are parallelized - so we trigger 2 async calls then await one, then await the other. In that case you can have a situation where you need to keep track of whether an await has started.
We definitely could improve codegen to detect this scenario and remove the unnecessary bookkeeping.
How can
!hasAwaitStarted_a_1_1
in the catch block ever not evaluate tofalse
? It's not assigned anywhere else.stronginject/StrongInject.Tests.Unit/GeneratorTests.cs
Lines 7112 to 7125 in 2143d9f
The text was updated successfully, but these errors were encountered: