I start gen_fsm:
start_link() ->
gen_fsm:start_link({global, ?MODULE}, [],
[]).
How can i get it's P开发者_JS百科ID?
Thank you.
If you check the documentation for gen_fsm:start_link/3 you'll see that it returns {ok, Pid}.
You can either get it as the result of gen_fsm:start_link/3 or since it is a registered process using whereis(nameofprocess).
加载中,请稍侯......
精彩评论