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

x/ash/src/EventEmitter.ts>default#on

A stylish web framework for Deno!
Latest
method default.prototype.on
import { default } from "https://deno.land/x/ash@1.3.6/src/EventEmitter.ts";

Listens for an event.

Parameters

name: string

The event to listen for.

callback: Function

A callback that will be called when the event is emitted.