Programming Theory/코루틴(Coruotine)
Coroutines guide - android coroutine API
1. snapshotFlow 1. snapshotFlow fun snapshotFlow(block: () -> T): Flow Create a Flow from observable Snapshot state. (e.g. state holders returned by mutableStateOf.) snapshotFlow creates a Flow that runs block when collected and emits the result, recording any snapshot state that was accessed. While collection continues, if a new Snapshot is applied that changes state accessed by block, the flow..
2022. 10. 30. 15:23