Skip to content

Commit 5aa47ac

Browse files
committed
debug
1 parent d960cc2 commit 5aa47ac

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

ICTMDBHomeModule/HomeInteractor.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,13 @@ final class HomeInteractor: PresenterToInteractorHomeProtocol,@unchecked Sendabl
3636
do {
3737
let (popularResult, airingResult) = try await (popularMovies, airingMovies)
3838

39-
await presenter?.sendData(
40-
popular: popularResult.results,
41-
airingToday: airingResult.results)
42-
43-
39+
await MainActor.run {
40+
presenter?.sendData(popular: popularResult.results, airingToday: airingResult.results)
41+
}
4442
} catch {
45-
await presenter?.sendError()
46-
43+
await MainActor.run {
44+
presenter?.sendError()
45+
}
4746
}
4847
}
4948
}

ICTMDBHomeModule/HomeProtocols.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ protocol PresenterToInteractorHomeProtocol:Sendable,AnyObject {
6363

6464
// MARK: - Interactor → Presenter
6565
/// Protocol for sending data or errors from Interactor to Presenter.
66-
@MainActor
6766
protocol InteractorToPresenterHomeProtocol : AnyObject{
6867

6968
func sendData(popular:[PopularTvShows],airingToday:[AiringToday])

0 commit comments

Comments
 (0)