Class Scanner<TResult>

Implements

CancelablePromise

Type Parameters

  • TResult

    Scanner is resolved with value of this type

Hierarchy

  • Scanner

Implements

  • CancelablePromise<TResult>

Constructors

Methods

Properties

Constructors

  • new Scanner<TResult>(params: Params<TResult, any>): Scanner<TResult>
  • Type Parameters

    • TResult

    Parameters

    Returns Scanner<TResult>

Methods

  • then<TResult1, TResult2>(onfulfilled?: ((value: TResult) => TResult1 | PromiseLike<TResult1>), onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>)): Promise<TResult1 | TResult2>
  • Type Parameters

    • TResult1 = TResult

    • TResult2 = never

    Parameters

    • Optional onfulfilled: ((value: TResult) => TResult1 | PromiseLike<TResult1>)
        • (value: TResult): TResult1 | PromiseLike<TResult1>
        • Parameters

          • value: TResult

          Returns TResult1 | PromiseLike<TResult1>

    • Optional onrejected: ((reason: any) => TResult2 | PromiseLike<TResult2>)
        • (reason: any): TResult2 | PromiseLike<TResult2>
        • Parameters

          • reason: any

          Returns TResult2 | PromiseLike<TResult2>

    Returns Promise<TResult1 | TResult2>

  • catch<TResult1>(onrejected?: ((reason: any) => TResult1 | PromiseLike<TResult1>)): Promise<TResult1>
  • Type Parameters

    • TResult1 = never

    Parameters

    • Optional onrejected: ((reason: any) => TResult1 | PromiseLike<TResult1>)
        • (reason: any): TResult1 | PromiseLike<TResult1>
        • Parameters

          • reason: any

          Returns TResult1 | PromiseLike<TResult1>

    Returns Promise<TResult1>

  • finally(onfinally?: (() => void)): Promise<TResult>
  • Parameters

    • Optional onfinally: (() => void)
        • (): void
        • Returns void

    Returns Promise<TResult>

  • cancel(reason?: string | Error): boolean
  • Parameters

    • Optional reason: string | Error

    Returns boolean

  • scan listenable and resolve based on this.evaluator

    Type Parameters

    • TEventMap extends object

    Parameters

    Returns Scanner<TResult>

Properties

[toStringTag]: string = 'Promise'

Generated using TypeDoc