chore(async): remove redundant constructor example (#5507)

chore(async): remove constructor example
This commit is contained in:
Asher Gomez 2024-07-23 13:04:41 +10:00 committed by GitHub
parent 8efc049ddf
commit a04f5ef419
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,13 +20,6 @@ export class RetryError extends Error {
* *
* @param cause the cause for this error. * @param cause the cause for this error.
* @param attempts the number of retry attempts made. * @param attempts the number of retry attempts made.
*
* @example Usage
* ```ts no-assert no-eval
* import { RetryError } from "@std/async/retry";
*
* throw new RetryError({ foo: "bar" }, 3);
* ```
*/ */
constructor(cause: unknown, attempts: number) { constructor(cause: unknown, attempts: number) {
super(`Retrying exceeded the maxAttempts (${attempts}).`); super(`Retrying exceeded the maxAttempts (${attempts}).`);