import { EventEmitter } from "https://deno.land/x/evtemitter@v3.0.0/EventEmitter.ts";
add a callback to an event only once. After that, the listener is removed.
Type Parameters
Ev extends ReservedOrUserEventNames<ReservedEvents, UserEvents>
Parameters
callback: ReservedOrUserListenerOn<ReservedEvents, UserEvents, Ev>
the callback to execute when the event is dispatched
add a callback to multiple events only once. After that, the listener is removed.
Type Parameters
Ev extends ReservedOrUserEventNames<ReservedEvents, UserEvents>
Parameters
callback: ReservedOrUserListenerOn<ReservedEvents, UserEvents, Ev>
the callback to execute when the event is dispatched