p-catch-if

catch handler

A utility function for handling conditional promise catches

Conditional promise catch handler

GitHub

38 stars
7 watching
5 forks
Language: JavaScript
last commit: over 5 years ago
Linked from 1 awesome list


Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
sindresorhus/p-ifA utility for conditional promise handling and chaining in TypeScript applications.60
sindresorhus/p-someWait for a specified number of promises to be fulfilled36
sindresorhus/p-anyA utility function to wait for any of multiple promises to be fulfilled with cancellation support.55
sindresorhus/p-filterTool for filtering and concurrent execution of promises with an adjustable concurrency level75
sindresorhus/p-tapHelps tap into a promise chain without affecting its value or state132
sindresorhus/p-tryA utility function to start a promise chain by executing a synchronous function safely58
sindresorhus/p-logUtility for logging promise values and errors in a chain of operations26
sindresorhus/p-breakA utility to exit a promise chain early and selectively execute subsequent promises based on conditions.22
sindresorhus/p-eventPromises an event by waiting for it to be emitted, allowing asynchronous iteration and rejection handling.429
sindresorhus/electron-unhandledCatches unhandled errors and promise rejections in Electron apps.452
sindresorhus/p-wait-forA utility function to wait for a condition to be true while allowing for customizable timeout options and fallback behavior.155
sindresorhus/exceptioncatcherWraps an Objective-C exception handler to enable catching exceptions in Swift137
sindresorhus/hard-rejectionMakes unhandled promise rejections fail immediately with an error message instead of silently failing.107
sindresorhus/p-settleA utility function to settle promises concurrently and retrieve their fulfillment or rejection values with optional concurrency control.90
sindresorhus/p-each-seriesIterates over promises in serial order, stopping at the first failed promise.50