Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何等到Meteor.subscribe准备好。这意味着我想编写一个阻塞代码。
Meteor.subscribe
我正在通过 DDP 连接从不同的服务器订阅一个集合,并希望等到订阅完成后再移动到下一行。
目前我可以将onReady回调作为最后一个参数传递,Meteor.subscribe但代码是异步的,不会等到订阅准备好。有什么建议么?
onReady