Skip to content

Instantly share code, notes, and snippets.

@abhimuktheeswarar
Created August 1, 2021 10:20
Show Gist options
  • Save abhimuktheeswarar/d7b7c2fa0cac6bf2f19e9b21ef8e59a9 to your computer and use it in GitHub Desktop.
Save abhimuktheeswarar/d7b7c2fa0cac6bf2f19e9b21ef8e59a9 to your computer and use it in GitHub Desktop.
CounterMessage for blog
sealed interface CounterMessage
object IncrementCounter : CounterMessage
object DecrementCounter : CounterMessage
class GetCounterState(val deferred: CompletableDeferred<CounterState>) : CounterMessage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment