@defer/client
Advanced tools
Changelog
1.6.0
#70 4646cd0
Thanks @gearnode! - Introducing maxDuration
support
defer()
exposes a new maxDuration
configuration:
const importContacts = (companyId: string, contacts: Contact[]) => {
// ...
};
export default defer(importContacts, {
maxDuration: 10, // timeout after 10secs
});
BREAKING CHANGE: maxDuration
has a default value to 30min. Users having executions going over this limit can override it with a higher value { maxDuration: 3600 }