Created
July 4, 2023 09:04
-
-
Save KwabenBerko/bd1e5284b3147b3e5cf5d98199676e38 to your computer and use it in GitHub Desktop.
Plain Component
This file contains 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
class PlainComponent: Component { | |
var refreshesCount: Int = 0 | |
private set | |
override suspend fun refresh(){ | |
delay(1L) // Delay to simulate a long running operation | |
refreshesCount++ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment