Created
May 2, 2024 23:31
-
-
Save igorescodro/23a56e5e0d1a72940dadcfce88069e04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.escodro.task.presentation.detail.main | |
//... | |
import dev.icerock.moko.mvvm.viewmodel.ViewModel | |
internal class TaskViewModel : ViewModel() { | |
fun loadTaskInfo() { | |
// Everything an Android ViewModel has | |
viewModelScope.launch { doSuspendStuff() } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment