Skip to main content
Module

std/node/_events.js>once

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function once
import { once } from "https://deno.land/std@0.125.0/node/_events.js";

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

Parameters

emitter
name
optional
options = [UNSUPPORTED]