hex-abyss/duplicate

检查是否为重复过程

v1.0.0 2021-08-05 12:26 UTC

This package is auto-updated.

Last update: 2024-09-30 01:35:57 UTC


README

安装此扩展的首选方式是通过 composer.

运行以下命令之一:

php composer.phar require --prefer-dist hex-abyss/duplicate "*"

或在您的 composer.json 文件的 require 部分添加:

"hex-abyss/duplicate": "*"

to the require section of your composer.json file.

用法

while(true){
    //some code
    if (\hexAbyss\Duplicate::isStopProcess())
        break;
}
while(true){
    //some code
    \hexAbyss\Duplicate::isExit();
}
//file: index.php
while(true){
    //some code
    if (\hexAbyss\Duplicate::isStopProcess())
        break;
}

//file: info.php
\hexAbyss\Duplicate::getInstance('keyInfo');
while(true){
    //some code
    if (\hexAbyss\Duplicate::isStopProcess())
        break;
}

许可证

该站点的源代码采用 MIT 许可证,您可以在 MIT-LICENSE.md 文件中找到。