Created
February 25, 2020 20:19
-
-
Save lordcodes/80c52cf1f03e38955834e999a414a891 to your computer and use it in GitHub Desktop.
Code for the article: "Uploading a file with progress in Kotlin"
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
| sealed class CountingRequestResult<ResultT> { | |
| data class Progress<ResultT>( | |
| val progressFraction: Double | |
| ) : CountingRequestResult<ResultT>() | |
| data class Completed<ResultT>( | |
| val result: ResultT | |
| ) : CountingRequestResult<ResultT>() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment