Timeout

March 30, 2020 ยท View on GitHub

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);