detritus

EventSubscriptionclass

A listener added with EventSpewer.subscribe(). Call remove() to stop listening.

On this page
import { EventSubscription } from 'detritus-utils';
5 properties1 methodsrc/eventspewer.ts:141

Constructor

Properties

listener
(...args: any[]) => void | null
name
string | symbol
spewer
wrapped
(...args: any[]) => void | null

What's actually attached to the spewer, a function only this subscription owns

Accessors

active
boolean
get

If it's still attached, false once removed (by remove(), removeListener() or removeAllListeners())

Methods