Preparing search index...

    Function failAsync

    • Unhandled Promise rejections are silently ignored by default. failAsync rethrows the error, ensuring it results in an unhandled exception.

      Parameters

      • error: any

      Returns void

      Note: error is not rethrown immediately, some pending JS code might still be executed. Use it as a default .catch() handler when no other error handling is provided.

      someAsyncFunction().catch(failAsync);