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

x/pup/lib/common/eventemitter.ts>EventEmitter

Universal process manager built in Deno
Go to Latest
class EventEmitter
import { EventEmitter } from "https://deno.land/x/pup@1.0.0-alpha-28/lib/common/eventemitter.ts";

Properties

listeners: Map<string, Array<EventHandler<any>>>

Methods

emit<T>(event: string, eventData?: T)
off<T>(event: string, fn: EventHandler<T>)
on<T>(event: string, fn: EventHandler<T>)