📦 Open Source

Zephyr Events: l'emitter da 2KB che non salta i tuoi handler

Il tuo event emitter salta gli handler. Zephyr Events ferma questa assurdità in soli 2KB.

Snippet di codice dell'event emitter TypeScript Zephyr Events con iterazione sicura degli handler

⚡ Key Takeaways

  • Risolve la race condition critica negli event emitter più usati come EventEmitter3. 𝕏
  • 2KB, zero dipendenze, generics TypeScript completi con modalità safe e fast. 𝕏
  • Iterazione su snapshot evita salti durante mutazioni mid-emit. 𝕏
Published by

DevTools Feed

Ship faster. Build smarter.

Worth sharing?

Get the best Developer Tools stories of the week in your inbox — no noise, no spam.

Originally reported by dev.to

Stay in the loop

The week's most important stories from DevTools Feed, delivered once a week.