Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/aleph/framework/core/events.ts>EventEmitter.once

The Full-stack Framework in Deno.
Go to Latest
method EventEmitter.once
import { EventEmitter } from "https://deno.land/x/aleph@v0.3.0-alpha.22/framework/core/events.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[]>