tags:

views:

57

answers:

1

Other than timer:send_after(0, message), is there a way to send a gen_server a handle_info message?

+6  A: 

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.

archaelus