Meteor: Appel d'une fonction asynchrone à l'intérieur d'un Météore.méthode et renvoie le résultat

Je veux appeler une fonction d'asynchrone à l'intérieur d'un Météore méthode, puis retourner le résultat de cette fonction à un Météore.appel.

Comment est-ce possible?

Meteor.methods({
  my_function: function(arg1, arg2) {
    //Call other asynchronous function and return result or throw error
  }
});
InformationsquelleAutor Joseph Tura | 2012-09-24