Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/yxz/async/mod.ts>EventEmitter#emit

Deno Standard Extensions
Go to Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/yxz@0.17.0/async/mod.ts";

Emit an event of a given type.

Type Parameters

T extends keyof Events

Parameters

type: T
optional
event: Events[T]