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

x/net/lib/util/emitter.ts>EventEmitter#once

A networking framework that aims to enable the development of complex multi-port servers and clients.
Go to Latest
method EventEmitter.prototype.once
import { EventEmitter } from "https://deno.land/x/net@v1.0.4/lib/util/emitter.ts";

Sets up a function that will be called only once when the specified event is delivered to the destination.

Parameters

event: string
fn: (...args: any) => void