Checks if an error is transient and should be retried.
The error to check
true if the error is transient
try { await db.run('INSERT INTO users (name) VALUES (?)', ['Alice']);} catch (error) { if (isTransientError(error)) { // Retry the operation }} Copy
try { await db.run('INSERT INTO users (name) VALUES (?)', ['Alice']);} catch (error) { if (isTransientError(error)) { // Retry the operation }}
Checks if an error is transient and should be retried.