我正在使用EventMachine和em- HTTP -requests通过http对API进行批处理调用。
在所有回调完成后,我不确定如何使用EM.Stop停止事件机器
假设我进行了10次异步批处理调用,如何在完成第10次回调后立即停止eventmachine?
发布于 2012-07-09 17:58:38
看看this example from the em-http-request GitHub page吧。它做的正是你想要的。
https://stackoverflow.com/questions/11391250
复制相似问题