2010-05-25 149 views

回答

12

除了調用,cast或sys消息之外,每個發往gen_server進程的消息都將由handle_info函數處理,所以只需要GenServerPid ! Msg。如果您將消息發送到同一進程,self() ! Msg