AsyncLoopToken: {
    __lastTime: number;
    cancel?: boolean;
}

A MUTABLE object (reused throughout an asyncLoop call) containing info about the currently processing asyncLoop.

Type declaration

  • __lastTime: number

    how long really took setTimeout to run this code

  • Optional cancel?: boolean

    Whether to cancel the loop next