import { once } from "https://deno.land/x/drive@v0.0.1-alpha/deps.ts";
Creates a Promise that is fulfilled when the TypedEmitter emits the given event or that is rejected when the TypedEmitter emits 'error'. The Promise will resolve with an array of all the arguments emitted to the given event.
Parameters
emitter: TypedEmitter<string, unknown> | EventTarget