I have a receive block in erlang.If there is a timeout in my gen-server it returns ok but not the actual value.How to return actual value

前端 未结 0 670
一个人的身影
一个人的身影 2021-01-04 22:02

loop () -> receive # \'basic.consume_ok\' {} -> loop (); { # \'basic.deliver\' {}, Msg} -> # amqp_msg {payload = Payload} = Msg, Pid = spawn ( ? MODULE , loop2 ,[[]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题