src/SellerLabs/Nucleus/Support/Std.php
public static function poll(callable $function, $times)
    {
        Arguments::define(Boa::func(), Boa::integer())
            ->check($function, $times);

        for ($ii = 0; $ii < $times; $ii++) {
            static::call($function, $ii);
        }
    }
public static function poll(callable $function, $times)
    {
        Arguments::define(Boa::func(), Boa::integer())
            ->check($function, $times);

        for ($ii = 0; $ii < $times; $ii++) {
            static::call($function, $ii);
        }
    }
public static function poll ( callable $ function , $ times ) { Arguments :: define ( Boa :: func ( ) , Boa :: integer ( ) ) -> check ( $ function , $ times ) ; for ( $ ii = 0 ; $ ii < $ times ; $ ii ++ ) { static :: call ( $ function , $ ii ) ; } }
Call a function N times.

This covers one of the most frequent case for using for-loops.

@param callable $function
@param int $times
Call a function N times .