AsyncInteractorAssisting
@MainActor
public protocol AsyncInteractorAssisting<InteractorType, ContentType> : InteractorAssisting
This protocol represents an assistant which helps a Destination make requests of an Interactor which participates in async/await flows. Concrete assistants conforming to this protocol should handle requests for a specific Interactor type.
-
handleAsyncRequest(destination:AsynchronousactionType: content: ) Handles an async request to an Interactor.
Declaration
Swift
@MainActor func handleAsyncRequest<Destination>(destination: Destination, actionType: Request.ActionType, content: ContentType?) async where Destination : Destinationable, Self.InteractorType == Destination.InteractorTypeParameters
destinationThe Destination which the Interactor is associated with. This reference is used to make requests to the Interactor.
contentAn optional content model used to make a request to the Interactor.
-
requestMethodExtension methodDeclaration
Swift
@MainActor var requestMethod: InteractorRequestMethod { get } -
handleRequest(destination:Extension methodactionType: content: ) Declaration
Swift
@MainActor func handleRequest<Destination>(destination: Destination, actionType: Request.ActionType, content: ContentType?) where Destination : Destinationable, Self.InteractorType == Destination.InteractorType -
handleAsyncRequest(destination:Extension method, asynchronousactionType: content: ) Undocumented
Declaration
Swift
@MainActor func handleAsyncRequest<Destination>(destination: Destination, actionType: any InteractorRequestActionTypeable, content: ContentType?) async where Destination : Destinationable, Self.InteractorType == Destination.InteractorType
View on GitHub