Factory
public struct Factory<Configuration, Interface>
A simple factory based on Swift Callable API. It takes a closure and creates a callable struct that will invoke the closure. This allows you to create inline factories in your Boundaries.
-
Undocumented
Declaration
Swift
public init(construction: @escaping (Configuration) -> Interface)
-
Undocumented
Declaration
Swift
public func callAsFunction(configuration: Configuration) -> Interface