DefaultAsyncInteractorAssistant
@MainActor
public struct DefaultAsyncInteractorAssistant<InteractorType, Request, ContentType> : AsyncInteractorAssisting where InteractorType : InteractorTypeable, Request : InteractorRequestConfiguring, ContentType : ContentTypeable
A default assistant to be used to configure async interactor actions. This assistant only passes along the given action type with the request to the interactor.
-
Declaration
Swift
@MainActor public let interactorType: InteractorType -
Declaration
Swift
@MainActor public var actionType: Request.ActionType -
Declaration
Swift
@MainActor public var requestMethod: InteractorRequestMethod -
Undocumented
Declaration
Swift
@MainActor public init(interactorType: InteractorType, actionType: Request.ActionType) -
handleAsyncRequest(destination:Asynchronouscontent: ) Declaration
Swift
@MainActor public func handleAsyncRequest<Destination>(destination: Destination, content: ContentType?) async where InteractorType == Destination.InteractorType, Destination : Destinationable
View on GitHub