Skip to content

Commit

Permalink
Merge pull request #989 from woxtu/no-network-crash
Browse files Browse the repository at this point in the history
[iOS] Fix app crash when network issue occurs
  • Loading branch information
takahirom authored Sep 7, 2024
2 parents 64abba6 + f0f0fa3 commit 8cec73f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import kotlin.coroutines.cancellation.CancellationException

interface ContributorsRepository {

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
suspend fun refresh()

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import kotlin.coroutines.cancellation.CancellationException

interface EventMapRepository {

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
suspend fun refresh()

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import kotlin.coroutines.cancellation.CancellationException
public interface SponsorsRepository {
public fun getSponsorStream(): Flow<PersistentList<Sponsor>>

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
public suspend fun refresh()

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface StaffRepository {

public fun staffs(): Flow<PersistentList<Staff>>

@Throws(CancellationException::class)
@Throws(AppError::class, CancellationException::class)
public suspend fun refresh()

@Composable
Expand Down

0 comments on commit 8cec73f

Please sign in to comment.