Search Result
A container for ProviderResults across multiple TorrentProviders. SearchResult eagerly executes the query with each TorrentProvider in providers.
Provider requests begin executing immediately and run until all are completed or SearchResult.cancel is called. Alternatively when collecting results with torrents, providerResults, or errors cancelOnComplete
can be set to true which will call cancel after the downstream flow is completed.
Functions
A list of the completed ProviderResults at the current moment, size may be less than providerCount.
A flow of ProviderResult.Errors for any failed requests made to any of the selected TorrentProviders.
Returns true when one or more providers has results that can be retrieved with additional requests.
True after cancel is called, no further requests will be completed.
True when all providers have produced a ProviderResult.
Returns a new SearchResult that contains all torrents from the current instance and will produce ProviderResults for any providers that have additional result pages.
The number of TorrentProviders that were selected to handle the TorrentQuery.
The number of ProviderResults that may be contained in this SearchResult.
A flow of raw ProviderResults from each TorrentProvider selected to handle the TorrentQuery
A flow of all TorrentDescriptions from each TorrentProvider selected to handle the TorrentQuery.