Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Emit an event of a given type.

Type Parameters

T extends keyof Events

Parameters

type: T
optional
event: Events[T]