Skip to main content

abstractEventManager

Hierarchy

Index

Constructors

constructor

Properties

readonlyconfig

config: Configuration = ...

Methods

close

  • close(): Promise<void>
  • Clears the internal persistState event interval. This is automatically called at the end of crawler.run().


    Returns Promise<void>

emit

init

  • init(): Promise<void>
  • Initializes the event manager by creating the persistState event interval. This is automatically called at the beginning of crawler.run().


    Returns Promise<void>

isInitialized

  • isInitialized(): boolean
  • Returns boolean

off

  • off(event: EventTypeName, listener?: (...args: any[]) => any): void
  • Parameters

    Returns void

on

  • on(event: EventTypeName, listener: (...args: any[]) => any): void
  • Parameters

    Returns void