import { EventEmitter, once } from "node:events";

const em = new EventEmitter();
const p = once(em, "ready");
em.emit("ready", "value-1", "value-2");
const result = await p;
console.log("length:", result.length);
console.log("joined:", result.join(","));
