Closed
Description
What is the feature?
This feature provides a utility function for JavaScript that simplifies asynchronous code handling by returning results and errors. Developers can easily manage success and failure cases without writing verbose try...catch blocks.
Example:
const [error, users] = await catchError(fetchUsers());
Why is this feature needed?
This feature introduces a clean, declarative way to manage errors, making the code more concise and easier to maintain.
Any additional comments?
No response
Confirmations
- I have read the Code of Conduct
- I have read the Issue Reporting Guidelines
- I have searched for similar issues in both open and closed tickets and cannot find a duplicate
- I know that any inappropriate content may cause the maintainer to take action base on the Code of Conduct
- This feature request is open because to fix a bug/issue