Skip to main content
Module

x/drollup/deps.ts>EventEmitter.once

Next-generation ES module bundler ported for Deno
Latest
method EventEmitter.once
import { EventEmitter } from "https://deno.land/x/drollup@2.58.0%2B0.20.0/deps.ts";

Creates a Promise that is fulfilled when the EventEmitter emits the given event or that is rejected when the EventEmitter emits 'error'. The Promise will resolve with an array of all the arguments emitted to the given event.

Parameters

name: string

Returns

Promise<any[]>