Last active
June 19, 2020 07:46
-
-
Save lukaszkalnik/80b0d22cde710bbc1a6f8f39b34d9f02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coroutineScope.launch { | |
tmdbApi.getConfiguration().fold( | |
ifLeft = { apiError -> showError(apiError) }, | |
ifRight = { configuration -> saveConfiguration(configuration) } | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment