Viv JavaScript Runtime - v0.10.2
    Preparing search index...

    Function tickPlanner

    • Ticks the Viv planner, causing it to do the following work:

      • Target each queued plan and queued plan selector in the global plan queue (in the VivInternalState). If a plan is successfully targeted, it will be launched and then immediately greedily executed to the degree possible, up to potential resolution. In the course of such initial execution, other plans may be queued, but only ones queued via urgent reactions will be immediately targeted upon being queued. If such an urgently queued plan is successfully targeted right away, it will itself be immediately launched with initial greedy execution, which may cause additional urgent queueing, and so forth.
      • Resume execution of all other plans that were already active at the beginning of the tick.

      Returns Promise<void>

      Nothing. All changes are persisted via side effects.

      await tickPlanner();
      

      VivNotInitializedError If Viv has not been initialized.

      VivInterpreterError If the Viv interpreter encounters an issue in the course of plan execution.