Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 338 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 338 Bytes

Tasker

Tasker -php 程序异步处理类,实现原理是使用pcntl_fork()创建子进程去实现耗时不需要返回的任务

Use example

require_once "src/AsyncTask.php";
//master task start.
AsyncTask::run(function ()
{
    //asynchronous task
    //do something...
    sleep(10);
});
//master task end.