Skip to main content
Module

std/node/_events.mjs>once

Deno standard library
Go to Latest
function once
import { once } from "https://deno.land/std@0.139.0/node/_events.mjs";

Creates a Promise that is fulfilled when the emitter emits the given event.

Parameters

emitter
name
optional
options = [UNSUPPORTED]