Guest User

Untitled

a guest
Jul 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ---------------------------------------------------------------------
  2. | some process | server process |
  3. ------------------------+--------------------------------------------
  4. [client] | [callback] : [behaviour]
  5. | :
  6. callback:start >-------|---------------------:--> starting the process
  7. | : V
  8. | : |
  9. | init() <-----:-----------`
  10. | | :
  11. | `-----------:------> initial state
  12. {ok, Pid} <----------|---------------------:----------,/
  13. | :
  14. callback:store >------|---------------------:--> handles message
  15. (calls the process) | (formats msg) : V
  16. | : |
  17. | handle_call() <--:-----------`
  18. | | :
  19. | `----------:--> updates state, sends reply
  20. | : V
  21. | : |
  22. gets result <--------|---------------------:--------`
  23. | :
Add Comment
Please, Sign In to add comment