modesttree / Zenject

Dependency Injection Framework for Unity3D
MIT License
2.43k stars 269 forks source link

[FEATURE REQUEST] Asynchronous Injection #47

Open dishanphilips opened 4 years ago

dishanphilips commented 4 years ago

Hi :)

Would it be possible to create a mechanism to inject asynchronously? Trying to use Zenject in a Sever project where dependencies are bound to a DB result.

yacuzo commented 4 years ago

I would say that goes against what dependency injections systems are meant to do.

You should probably look into using a factory, maybe with a subcontext.