Function __global->clear_infinite_loop_iterations

Definitions

sources/global3.php

  • Reset the number of iterations performed on a check_for_infinite_loop call.This should be called when applicable, say, if a cache was cleared.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$codename ID_TEXT No No required parameter N/A N/A The codename to clear
$args ?array No No Null N/A N/A Reset iterations on the call which used these arguments (null: reset everything on $codename)

Preview

Code (PHP)

/**
 * Reset the number of iterations performed on a check_for_infinite_loop call.This should be called when applicable, say, if a cache was cleared.
 *
 * @param  ID_TEXT $codename The codename to clear
 * @param  ?array $args Reset iterations on the call which used these arguments (null: reset everything on $codename)
 */

function clear_infinite_loop_iterations(string $codename, ?array $args = null)