/php_delay

Execute you php code later

Primary LanguagePHPApache License 2.0Apache-2.0

php_delay

PHP delay execute closures.

install

composer require sn01615/php_delay

usage

use PhpUtils;

$cc = 'aaa';
phpDelay::getInstance()->push(function () use ($cc) {
    echo $cc;
});
echo 'bbb';
# response: bbbaaa