Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Delay execution
<?php sleep(int $seconds): int
<?php             $this->runProcess($process, $options->memory);



            if ($options->rest) {

                sleep($options->rest);

            }

        }

    }
<?php         if ($seconds < 1) {

            usleep($seconds * 1000000);

        } else {

            sleep($seconds);

        }

    }
<?php         $seconds = (int) $remaining->totalSeconds;



        if ($seconds > 0) {

            sleep($seconds);



            $remaining = $remaining->subSeconds($seconds);

        }
<?php         $firstLock = Cache::lock('foo', 1);

        $this->assertTrue($firstLock->get());

        sleep(2);



        $secondLock = Cache::lock('foo', 10);

        $this->assertTrue($secondLock->get());
<?php         $firstLock = Cache::store('memcached')->lock('bar', 1);

        $this->assertTrue($firstLock->acquire());

        sleep(2);



        $secondLock = Cache::store('memcached')->lock('bar', 10);

        $this->assertTrue($secondLock->acquire());
<?php         $firstLock = Cache::store('redis')->lock('foo', 1);

        $this->assertTrue($firstLock->get());

        sleep(2);



        $secondLock = Cache::store('redis')->lock('foo', 10);

        $this->assertTrue($secondLock->get());
<?php         Cache::store('redis')->tags(['votes'])->increment('person-1');

        Cache::store('redis')->tags(['votes'])->increment('person-1');



        sleep(2);



        Cache::store('redis')->tags(['votes'])->flushStale();
<?php         Cache::store('redis')->tags(['people', 'author'])->put('person-1', 'Sally', 1);

        Cache::store('redis')->tags(['people', 'artist'])->put('person-2', 'John', 1);



        sleep(2);




        Cache::store('redis')->tags(['people', 'author'])->put('person-3', 'Jennifer', 5);
<?php     public function handle(): void

    {

        DB::transaction(fn () => sleep(20));

    }

}
<?php         } elseif ($pid == 0) {

            $this->setUpRedis();

            $this->setQueue('phpredis');

            sleep(1);

            $this->queue->push(new RedisQueueIntegrationTestJob(12));

            exit;

        } else {
<?php     public function handle()

    {

        sleep(1);



        static::$ran = true;

    }
<?php         $this->assertEquals([1, 2], $store);



        sleep(2);



        (new DurationLimiter($this->redis(), 'key', 2, 2))->block(0, function () use (&$store) {

            $store[] = 3;