const client = new WechatAccessToken({ redis: 'redis://:@127.0.0.1:6379' });
const result1 = client.getAccessToken({ appID: '', appSecret: ''});
const result2 = client.getAccessToken({ appID: '', appSecret: ''});
const result3 = client.getAccessToken({ appID: '', appSecret: ''});
Promise
.all([result1, result2, result3])
.then(values => {
console.log(values);
})
.catch(error => {
console.log(error);
});
Apache 2.0