Transformer
public protocol Transformer : Module
An object that will apply different transformations, selected by transformationId, to a dispatch.
-
Applies a transformation, identified by a
transformationId, to aDispatchfor theDispatchScopein which this transformation is called.Declaration
Swift
func applyTransformation(_ transformation: TransformationSettings, to dispatch: Dispatch, scope: DispatchScope, completion: @escaping (Dispatch?) -> Void)
-
factoryExtension methodReturns a
BasicModuleFactoryfor this transformer, used by automatic-loader classes to register the transformer as a default module. Not intended for direct use.Declaration
Swift
static var factory: BasicModuleFactory<Self> { get }
View on GitHub