1

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()
nubela
  • 1
  • 24
  • 75
  • 123

1 Answers1

1

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()
Dylan
  • 144
  • 1
  • 7