Other than timer:send_after/2, is there a way to send a gen_server a handle_info message?
Other than timer:send_after/2, is there a way to send a gen_server a handle_info message?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Every message to a gen_server process other than a call, cast or sys message will be handled by the
handle_infofunction, so justGenServerPid ! Msg. If you’re sending the message to the same process,self() ! Msg.