Type Alias HasCompletion

HasCompletion: {
    get runState(): HasCompletionRunStates;
    get startCount(): number;
    get startCountTotal(): number;
}

Type declaration

  • get runState(): HasCompletionRunStates

    Gets the current run state idle: not yet started or completed with no future run scheduled scheduled: waiting to run running: currently executing its callback

  • get startCount(): number

    Returns the number of times the scheduled function has been executed.

    This number will be reset in some conditions. For example continuously resets it when the loop stops.

    Use startCountTotal to track total number.

  • get startCountTotal(): number

    Total number of times scheduled function has been executed.