StrictlyInjectedProvider
public struct StrictlyInjectedProvider<I> : InjectedProvider where I : Injector
The InjectedProvider
for StrictInjector
.
All factories will be evaluated immediately.
If the factory throws an error, it will be stored and throwed on StrictlyInjectedProvider.resolve(withInjector:)
.
-
Undocumented
Declaration
Swift
public typealias Key = I.Key
-
Declaration
Swift
public typealias Injected = I
-
Creates a strictly injected provider. The factory will be evaluated synchronously. For more details see
InjectedProvider.init(key:withInjector:usingFactory:)
.Declaration
Swift
public init( key: Key, withInjector injector: inout I, usingFactory factory: @escaping (inout I) throws -> Providable )
-
Implements
InjectedProvider.resolve(withInjector:)
.Declaration
Swift
public func resolve(withInjector injector: inout Injected) throws -> Providable