We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9de59b6 commit 7082949Copy full SHA for 7082949
iMEGA/Home/Repository/SDK/SDKFilesSearchRepository.swift
@@ -45,6 +45,8 @@ final class SDKFilesSearchRepository: FilesSearchRepositoryProtocol {
45
formatType: MEGANodeFormatType) async throws -> [MEGANode] {
46
return try await withCheckedThrowingContinuation({ continuation in
47
search(string: string, inNode: node, sortOrderType: sortOrderType, formatType: formatType) {
48
+ guard Task.isCancelled == false else { continuation.resume(throwing: FileSearchResultErrorEntity.cancelled); return }
49
+
50
continuation.resume(with: $0)
51
}
52
})
0 commit comments