Class Domain

Hierarchy

Index

Methods

Methods

public add(emitter: EventEmitter)

Parameters

public addListener(event: string, listener: Function): Domain

Parameters

  • event: string
  • listener: Function

Returns

Domain

public bind(cb: (err: Error, data: any) => any): any

Parameters

  • cb: (err: Error, data: any) => any

Returns

any

public dispose()

public emit(event: string, args?: Array<any>): boolean

Parameters

  • event: string
  • args?: Array<any> optional

Returns

boolean

public intercept(cb: (data: any) => any): any

Parameters

  • cb: (data: any) => any

Returns

any

public listeners(event: string): Array<Function>

Parameters

  • event: string

Returns

Array<Function>

public on(event: string, listener: Function): Domain

Parameters

  • event: string
  • listener: Function

Returns

Domain

public once(event: string, listener: Function): Domain

Parameters

  • event: string
  • listener: Function

Returns

Domain

public remove(emitter: EventEmitter)

Parameters

public removeAllListeners(event?: string): Domain

Parameters

  • event?: string optional

Returns

Domain

public removeListener(event: string, listener: Function): Domain

Parameters

  • event: string
  • listener: Function

Returns

Domain

public run(fn: Function)

Parameters

  • fn: Function

public setMaxListeners(n: number)

Parameters

  • n: number