Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WatchManager

Hierarchy

  • EventEmitter
    • WatchManager

Constructors

constructor

  • new WatchManager(options?: EventEmitterOptions): WatchManager

Properties

Private dirWatchers

dirWatchers: DirectoryWatcherMap = new Map()

Private lastWatcherId

lastWatcherId: number = 0

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string | symbol, listener: function): this

emit

  • emit(event: string | symbol, ...args: any[]): boolean

eventNames

  • eventNames(): Array<string | symbol>

getMaxListeners

  • getMaxListeners(): number

listenerCount

  • listenerCount(type: string | symbol): number

listeners

  • listeners(event: string | symbol): Function[]

notifyWatchers

  • notifyWatchers(resolvePath: function): void

off

  • off(event: string | symbol, listener: function): this

on

  • on(event: string | symbol, listener: function): this

once

  • once(event: string | symbol, listener: function): this

prependListener

  • prependListener(event: string | symbol, listener: function): this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this

rawListeners

  • rawListeners(event: string | symbol): Function[]

registerWatcher

removeAllListeners

  • removeAllListeners(event?: string | symbol): this

removeListener

  • removeListener(event: string | symbol, listener: function): this

setMaxListeners

  • setMaxListeners(n: number): this

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number

Generated using TypeDoc