(err: MongoError)
| 1520 | } |
| 1521 | |
| 1522 | export function isNodeShuttingDownError(err: MongoError): boolean { |
| 1523 | return !!(typeof err.code === 'number' && SDAM_NODE_SHUTTING_DOWN_ERROR_CODES.has(err.code)); |
| 1524 | } |
| 1525 | |
| 1526 | /** |
| 1527 | * Determines whether SDAM can recover from a given error. If it cannot |