开发者

Erlang: How do you send yourself a handle_info message?

开发者 https://www.devze.com 2023-01-01 05:16 出处:网络
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 ha

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

精彩评论

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