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
Documentation mentions there is global resolve function, but I can't find any in the code.
The generic implementation is simple, but probably there is a good reason it's missing?
@inlinablepublicfunc resolve<T>(_ keyPath:KeyPath<Container,Factory<T>>)->T{Container.shared[keyPath: keyPath]()}@inlinablepublicfunc resolve<T, C:SharedContainer>(_ keyPath:KeyPath<C,Factory<T>>, in container:C)->T{container[keyPath: keyPath]()}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Documentation mentions there is global
resolve
function, but I can't find any in the code.The generic implementation is simple, but probably there is a good reason it's missing?
Beta Was this translation helpful? Give feedback.
All reactions