ghedeon11/11/2019, 4:17 PM
CoroutineScope scope = ViewModelKt.getViewModelScope(this); BuildersKt.launch(scope, scope.getCoroutineContext(), CoroutineStart.DEFAULT, (_scope, continuation) -> signUp.invoke(params, continuation) );
Zach Klippenstein (he/him) [MOD]11/11/2019, 8:00 PM
from your lambda to indicate that the function didn't finish. But I think you also then need to check the return value of your signup function to either return directly or return that constant. It would be much better to just write a helper in kotlin.
ghedeon11/12/2019, 6:53 AM