Skip to content

Instantly share code, notes, and snippets.

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