Awesome Lists

p-event

by sindresorhus

JavaScriptpushed over 2 years ago

Promisify an event by waiting for it to be emitted

AI summary

Event promiser

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

stars
429
forks
25
watching
8
awesome list
1
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/sindresorhus/p-event/links.svg)](https://awesome.facts.dev/awesome/sindresorhus/p-event)
HTML
<a href="https://awesome.facts.dev/awesome/sindresorhus/p-event"><img src="https://awesome.facts.dev/shield/sindresorhus/p-event/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/sindresorhus/p-event/links.svg

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.