1

我有一个 Meteor 方法generateUserHash,它只是将一个 ID 传递给Intercom以取回用户哈希:

export const generateUserHash = new ValidatedMethod({
  name: 'generateUserHash',

  validate() {},

  run() {
    if (!Meteor.isServer) return;

    if (!this.userId) throw new Meteor.Error('no-user-id');

    return SecureMode.userHash({
      identifier: this.userId,
      secretKey: Meteor.settings.intercom.secretKey,
    });
  },
});

根据卡迪拉的说法:

在此处输入图像描述

我不明白为什么当这些订阅不在方法中时,它为什么要等待所有这些订阅。

4

1 回答 1

0

即使订阅不在该方法中,方法也会等待订阅。

关于等待时间的好帖子在这里:https ://meteorhacks.com/understanding-meteor-wait-time-and-this-unblock/

于 2017-02-08T21:30:26.870 回答