This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
Releases: hazae41/mutevents.ts
Releases · hazae41/mutevents.ts
5.4.1
5.4
Event data is now mutable!
New syntax:
const [data, cancelled] = await emitter.emit("example", data)
if (cancelled) console.log("cancelled", cancelled.reason)
const [data, cancelled] = emitter.emitSync("example", data)
if (cancelled) console.log("cancelled", cancelled.reason)
emitSync will now throw an error when an async listener is used