Home Reference Source
public class | source

WaitTask

Constructor Summary

Public Constructor
public

constructor(domWorld: DOMWorld, predicateBody: Function | string, title: *, polling: string | number, timeout: number, args: ...*)

Member Summary

Public Members
public

promise: *

Private Members
private

_args: *

private
private
private
private

_reject: *

private
private
private
private
private
private

Method Summary

Public Methods
public

async rerun()

public

terminate(error: Error)

Private Methods
private

Public Constructors

public constructor(domWorld: DOMWorld, predicateBody: Function | string, title: *, polling: string | number, timeout: number, args: ...*) source

Params:

NameTypeAttributeDescription
domWorld DOMWorld
  • nullable: false
predicateBody Function | string
title *
polling string | number
timeout number
args ...*

Public Members

public promise: * source

Private Members

private _args: * source

private _domWorld: * source

private _polling: * source

private _predicateBody: * source

private _reject: * source

private _resolve: * source

private _runCount: number source

private _runningTask: * source

private _terminated: boolean source

private _timeout: * source

private _timeoutTimer: * source

Public Methods

public async rerun() source

public terminate(error: Error) source

Params:

NameTypeAttributeDescription
error Error
  • nullable: false

Private Methods

private _cleanup() source