p-event

Event promiser

Promises an event by waiting for it to be emitted, allowing asynchronous iteration and rejection handling.

Promisify an event by waiting for it to be emitted

GitHub

429 stars
8 watching
25 forks
Language: JavaScript
last commit: 10 months ago
Linked from 1 awesome list


Backlinks from these awesome lists:

Related projects:

Repository Description Stars
sindresorhus/p-some Wait for a specified number of promises to be fulfilled 36
sindresorhus/p-any A utility function to wait for any of multiple promises to be fulfilled with cancellation support. 55
sindresorhus/p-race Improves Promise.race() by preventing infinite pending promises and adding support for aborting promises using AbortSignal. 46
sindresorhus/p-time A utility to measure the time taken by a promise to resolve 70
sindresorhus/p-filter Tool for filtering and concurrent execution of promises with an adjustable concurrency level 73
sindresorhus/p-tap Helps tap into a promise chain without affecting its value or state 132
sindresorhus/p-defer Provides a promise that can be delayed to execute at a specific time or after another operation is completed. 75
sindresorhus/observable-to-promise Converts an Observable to a Promise for asynchronous data handling 47
sindresorhus/p-all Concurrently execute multiple promise-returning functions with optional concurrency limits. 318
sindresorhus/pify Promises utility to convert callback-style functions into promise-based versions. 1,505
sindresorhus/p-try A utility function to start a promise chain by executing a synchronous function safely 58
sindresorhus/p-log Utility for logging promise values and errors in a chain of operations 26
sindresorhus/p-times Runs promise-returning & async functions multiple times concurrently 38
sindresorhus/delay Allows delaying promises by a specified amount of time or a random range. 609
sindresorhus/p-map A utility for mapping over promises concurrently while controlling concurrency and error handling. 1,373