Flows do not wind up on some other dispatcher by magic. Instead, they use the same dispatcher mechanism as we use for the rest of coroutines.
b4777467766has quoted2 years ago
Another option is to use flowOn() to customize the Flow
b4777467766has quoted2 years ago
Now, the lambda expression will run on Dispatchers.Default, but our collection of the results will be performed on Dispatchers.Main (courtesy of the launch() dispatcher).