Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule.exec should call info.wait if rule.replies exists #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Rule.exec should call info.wait if rule.replies exists #28

wants to merge 4 commits into from

Conversation

xiaoruoruo
Copy link

No description provided.

@ktmud
Copy link
Member

ktmud commented Feb 23, 2014

webot 里的实现是在 webot.reply 这个 API 里执行的

https://github.com/node-webot/webot/blob/master/lib/webot.js#L430

好像确实应该转到 rule.js 里来。帮忙把那边也改掉吧?

@xiaoruoruo
Copy link
Author

挪过来了。本来是根据err来跳过info.wait,我自作主张用了一个新的参数来控制,不知是否妥当?

@ktmud
Copy link
Member

ktmud commented Mar 2, 2014

已经有一个 info.resolve() 方法了

@ktmud
Copy link
Member

ktmud commented Mar 2, 2014

不过好像目的不一样。。。 那就加上吧。。。

info.wait('_reply_' + rule.name);
}
oldcb(err, next);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不过为什么要新加一个函数?直接加一句 info.wait 不可以?又不是异步操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants