Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------
- | some process | server process |
- ------------------------+--------------------------------------------
- [client] | [callback] : [behaviour]
- | :
- callback:start >-------|---------------------:--> starting the process
- | : V
- | : |
- | init() <-----:-----------`
- | | :
- | `-----------:------> initial state
- {ok, Pid} <----------|---------------------:----------,/
- | :
- callback:store >------|---------------------:--> handles message
- (calls the process) | (formats msg) : V
- | : |
- | handle_call() <--:-----------`
- | | :
- | `----------:--> updates state, sends reply
- | : V
- | : |
- gets result <--------|---------------------:--------`
- | :
Add Comment
Please, Sign In to add comment