Skip to content

Commit 4bd3235

Browse files
author
roman_tcaregorodtcev
committed
Launch with waiting return job added
1 parent 9c7e9dc commit 4bd3235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/omega_r/base/mvp/presenters/OmegaPresenter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ open class OmegaPresenter<View : OmegaView> : MvpPresenter<View>(), CoroutineSco
109109
context: CoroutineContext = EmptyCoroutineContext,
110110
waitingText: Text? = null,
111111
block: suspend () -> Unit
112-
) {
112+
): Job {
113113
viewState.setWaiting(true, waitingText)
114-
launch(context) {
114+
return launch(context) {
115115
try {
116116
block()
117117
} finally {

0 commit comments

Comments
 (0)