I hereby claim:
- I am clouseauu on github.
- I am clouseauu (https://keybase.io/clouseauu) on keybase.
- I have a public key whose fingerprint is F3E9 6671 3223 9E8A DC18 53BE ADA4 04D0 FF31 CD73
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| defmodule CountActor do | |
| use ExActor.GenServer, export: :counter | |
| defstart start_link(state), do: initial_state(state) | |
| defcall get, state: 2, do: reply(:two) | |
| defcall get, state: state, do: reply(state) | |
| defcast inc, state: state, do: new_state(state + 1) | |
| defcast dec, state: state, do: new_state(state - 1) | |
| end |