Skip to content

Instantly share code, notes, and snippets.

@abhimuktheeswarar
Created August 1, 2021 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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