File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
feature/detail/src/main/kotlin/com/ninecraft/booket/feature/detail/book Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import kotlinx.collections.immutable.ImmutableList
3838import kotlinx.collections.immutable.persistentListOf
3939import kotlinx.collections.immutable.toImmutableList
4040import kotlinx.collections.immutable.toPersistentList
41+ import kotlinx.coroutines.CancellationException
4142import kotlinx.coroutines.async
4243import kotlinx.coroutines.coroutineScope
4344import kotlinx.coroutines.launch
@@ -120,6 +121,8 @@ class BookDetailPresenter @AssistedInject constructor(
120121
121122 uiState = UiState .Success
122123 }
124+ } catch (ce: CancellationException ) {
125+ throw ce
123126 } catch (e: Throwable ) {
124127 uiState = UiState .Error (e)
125128
You can’t perform that action at this time.
0 commit comments