diff --git a/Account/Sources/Account/FeedFinder/FeedFinder.swift b/Account/Sources/Account/FeedFinder/FeedFinder.swift index 5640f2f7a..f4876000a 100644 --- a/Account/Sources/Account/FeedFinder/FeedFinder.swift +++ b/Account/Sources/Account/FeedFinder/FeedFinder.swift @@ -12,6 +12,20 @@ import Web class FeedFinder { + static func find(url: URL) async throws -> Set { + + try await withCheckedThrowingContinuation { continuation in + self.find(url: url) { result in + switch result { + case .success(let feedSpecifiers): + continuation.resume(returning: feedSpecifiers) + case .failure(let error): + continuation.resume(throwing: error) + } + } + } + } + static func find(url: URL, completion: @escaping (Result, Error>) -> Void) { downloadAddingToCache(url) { (data, response, error) in