开发者

Erlang: How do you send yourself a handle_info message?

Other than timer:send_after/2, is there a way to send a gen_server开发者_StackOverflow社区 a handle_info message?


Every message to a gen_server process other than a call, cast or sys message will be handled by the handle_info function, so just GenServerPid ! Msg. If you're sending the message to the same process, self() ! Msg.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜