【发布时间】:2016-12-17 11:11:29
【问题描述】:
我的功能是从 Gmail 接收电子邮件。我想运行这个函数 n 次或直到找到一封电子邮件。
什么是正确的方法?我试过了:http://caolan.github.io/async/docs.html#retry 但没有成功。
我正在关注这篇文章如何阅读电子邮件:https://developers.google.com/gmail/api/quickstart/nodejs
【问题讨论】:
-
请问您可以发布您尝试过的内容吗?
-
函数是返回 Promise 还是接收回调?
-
@samsonthehero 它收到回调
标签: javascript node.js asynchronous gmail