Jetpack Compose Launch Coroutines

December 17, 2021
@Composable
fun test() {
    val coroutineScope = rememberCoroutineScope()

    Button(onClick = {
        coroutineScope.launch {
          // so something
        }
    }) {
        Text("Launch")
    }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.