Methods
addListener
- addListener(listener: (this: undefined, arg: T) => void, isAsync?: undefined | false | true, thisArg?: undefined): IDisposable
- addListener<TThis>(listener: (this: TThis, arg: T) => void, isAsync: boolean, thisArg: TThis): IDisposable
-
Parameters
-
listener: (this: undefined, arg: T) => void
-
- (this: undefined, arg: T): void
-
Optional isAsync: undefined | false | true
-
Optional thisArg: undefined
-
Type parameters
Parameters
-
listener: (this: TThis, arg: T) => void
-
- (this: TThis, arg: T): void
-
isAsync: boolean
-
thisArg: TThis
Represents a simple pub-sub event.