AsyncDatasourceable

public protocol AsyncDatasourceable<Item> : AsyncInteractable

This protocol represents a datasource Interactor actor. Datasources are designed to provide data models to a Destination based on requests, such as requesting objects from a server for display in a navigation stack. For more information on Interactors, please see the documentation for Interactable.

Note

If you need your datasource Interactor to run in a synchronous context, please conform it to the Datasourceable protocol instead.

  • This type represents the type of data model this datasource handles.

    Declaration

    Swift

    associatedtype Item : Hashable
  • Items contained by the datasource.

    Declaration

    Swift

    var items: [Item] { get set }
  • perform(request:) Extension method

    Undocumented

    Declaration

    Swift

    nonisolated func perform(request: Request)