how i could make this code run synchronously? ```f...
# coroutines
s
how i could make this code run synchronously?
Copy code
fun handleAction(state: RootState, action: Action) {
        if (action == Refresh) {
            launch(uiContext) {
                val result = withContext(bgContext) { dataSource().await() }
                callback(result)
            }
        }
    }