我很难找到这个问题的答案——我怀疑是因为我可能没有使用正确的术语。我正在使用流星。
这是我想要完成的事情:
Function A - returns the flickr userID based on userAPI and username
Function B - uses the userID generated by Function A
我遇到的问题Function B是完成之前Function A有机会从 Flickr 检索信息。
延迟Function B并以某种方式将其与成功完成联系起来的最佳方式是Function A什么?