Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/fetch-mission-data-async' in…
Browse files Browse the repository at this point in the history
…to release-qa/1_0_4_a
  • Loading branch information
eshc123 committed Dec 20, 2024
2 parents 3744ef0 + 0d8a21a commit ace6f2c
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,21 @@ class BoardViewModel @Inject constructor(

fun fetchMissionData() {
viewModelScope.launch {
getMissionBoards()
getMission()
getMissionVerification()
joinAll(
launch { getMission() },
launch { getMissionVerification() },
launch { getMissionBoards() }
)
}
}

fun refreshMissionData() {
viewModelScope.launch {
_isRefreshLoading.emit(true)
joinAll(
launch { getMissionBoards() },
launch { getMission() },
launch { getMissionVerification() }
launch { getMissionVerification() },
launch { getMissionBoards() }
)
_isRefreshLoading.emit(false)
}
Expand Down

0 comments on commit ace6f2c

Please sign in to comment.