Skip to content

Instantly share code, notes, and snippets.

@jacobaraujo7
Created April 12, 2021 17:52
Show Gist options
  • Save jacobaraujo7/3fc2b3f50ff8c64f9f5b4ed936155f56 to your computer and use it in GitHub Desktop.
Save jacobaraujo7/3fc2b3f50ff8c64f9f5b4ed936155f56 to your computer and use it in GitHub Desktop.
class Counter extends StreamStore<Exception, int> {
Counter(): super(0)
increment(){
update(state + 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment