The setTimeout
method allows you to set a timeout on a request. The request will be aborted after the timeout. Note that the timeout is in milliseconds. Details here.
const sgMail = require('@sendgrid/mail');
sgMail.setTimeout(3000);
The setTimeout
method allows you to set a timeout on a request. The request will be aborted after the timeout. Note that the timeout is in milliseconds. Details here.
const sgMail = require('@sendgrid/mail');
sgMail.setTimeout(3000);