标签:style class blog code http color
flush() ->
receive
_ -> flush()
after 1000 ->
ok
end.
有个特殊情况是,当超时时间设定为0时,程序不是立马退出,而是先将message box中的消息匹配完后,再返回。
Erlang进程间消息接收超时设定,布布扣,bubuko.com
标签:style class blog code http color
原文地址:http://www.cnblogs.com/kiven-code/p/3804629.html