返回救出的异常,否则失败 assert_receive(pattern,timeout\Application.fetch_env!
SeeAlso msg_get_queue()-Createorattachtoamessagequeue msg_receive()-Receiveamessagefromamessagequeue
{call,self(),Msg},receive{complex,Result}->Resultend. complex过程执行以下操作: 将消息编码为一系列字节。 将其发送到端口。 等待回复。
{call,self(),Msg},receive{complex,Result}->Resultend. complex过程执行以下操作: 将消息编码为一系列字节。 将其发送到端口。 等待回复。
一个例外是推(内触发挂钩pre-receive,update,post-receive,post-update,push-to-checkout它们总是在$GIT_DIR执行)。
set_token('receive',Bool) 跟踪令牌标志(true|false),用于启用/禁用跟踪消息接收。默认是false。

扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2026 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059
粤公网安备44030502008569号
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号
