Skip to main content
Go to Latest
method default.prototype.removeAfterOneInvocation
import { default } from "https://deno.land/x/evtemitter@v3.0.0/mod.ts";

Type Parameters

Ev extends ReservedOrUserEventNames<ReservedEvents, UserEvents>

Parameters

type: Ev

the callback to call

callbackToCall: ReservedOrUserListenerAddEventListener<ReservedEvents, UserEvents, Ev>

optional - the callback to use to remove the callback from the listeners Map, it must be the key in the Map. It is only necessary if the callback is added via on or once, because then the key callback differs from its value

optional
callbackToRemove: ReservedOrUserListenerOnOrAddEventListener<ReservedEvents, UserEvents, Ev> = [UNSUPPORTED]