InlineContextTask
@MainActor
public struct InlineContextTask<VC, C> : ContextTask where VC : UIViewController
InlineContextTask
NB: It may be used for the purpose of configuration testing, but then replaced with a strongly typed
ContextTask instance.
-
Constructor
Declaration
Swift
@MainActor public init(_ completion: @escaping (VC, C) throws -> Void)Parameters
completionthe block to be called when
InlineContextTaskwill be applied to theUIViewControllerinstance. -
Declaration
Swift
@MainActor public func perform(on viewController: VC, with context: C) throws