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
A way to resolve circular dependencies:
Late doesn't hold a value, when the consumers constructor is executed. Also no guarantee is given when it will to (only that it will do at some point).
For ease of use Late holds a Task and can also be awaited.
Implementation-wise after resolving all dependencies of a type, the normal resolution algorithm will check if a Late can be satisfied by the processed Factory or any of its dependencies.
If so, the crated provider will fill the Late after the constructor of the resolved type has finished.
If not the Late will become a dependency of the created provider.
The text was updated successfully, but these errors were encountered:
A way to resolve circular dependencies:
Late doesn't hold a value, when the consumers constructor is executed. Also no guarantee is given when it will to (only that it will do at some point).
For ease of use Late holds a Task and can also be awaited.
Implementation-wise after resolving all dependencies of a type, the normal resolution algorithm will check if a Late can be satisfied by the processed Factory or any of its dependencies.
If so, the crated provider will fill the Late after the constructor of the resolved type has finished.
If not the Late will become a dependency of the created provider.
The text was updated successfully, but these errors were encountered: