Skip to content

Instantly share code, notes, and snippets.

@JoseAlcerreca
Created June 25, 2020 15:18
Show Gist options
  • Save JoseAlcerreca/1bf4392bd29ef0ddc0e27acbe90090ed to your computer and use it in GitHub Desktop.
Save JoseAlcerreca/1bf4392bd29ef0ddc0e27acbe90090ed to your computer and use it in GitHub Desktop.
<!-- Copyright 2020 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
val currentWeatherFlow: LiveData<String> =
dataSource.fetchWeatherFlow()
.onStart { emit(LOADING_STRING) }
.asLiveData()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment