For example:
await Meteor.call "putCampaign", url, daily_budget, defer campaign_id
is a callback with a callback with a single argument.
How can I defer a call without a single argument?
In code, instead of:
callback(campaign_id)
The blocking call calls
callback()
defer是代替回调的函数,因此您只需使用defer()
await Meteor.call "putCampaign", url, daily_budget, defer()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.