Skip to content

Instantly share code, notes, and snippets.

@keroro520
Created September 9, 2015 10:38
Show Gist options
  • Save keroro520/b86baa0db1018212c3b0 to your computer and use it in GitHub Desktop.
Save keroro520/b86baa0db1018212c3b0 to your computer and use it in GitHub Desktop.
在fsm里,有大致下面几种状态转移方式,大家在选择状态转移方式时会基于什么考虑? 谈谈经验,最近有点疑惑..
1. 借助于timeout
{:ok, state_name, state, 0}
2.
{:next_state, state_name, state}
3.
{:ok, state_name, state}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment