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:Asynchronouscontent: ) Handles an async request to an Interactor.
Declaration
Swift
@MainActor func handleAsyncRequest<Destination>(destination: Destination, 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 methodcontent: ) Declaration
Swift
@MainActor func handleRequest<Destination>(destination: Destination, content: ContentType?) where Destination : Destinationable, Self.InteractorType == Destination.InteractorType
View on GitHub