Question

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()
Was it helpful?

Solution

defer is a function that takes the place of the callback, so you simply would use defer()

await Meteor.call "putCampaign", url, daily_budget, defer()
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top