|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2019-02-04 (7 months ago) || 67%||Total: 920 ||All time: 3,811 This week: 312|
This class can Execute asynchronous tasks in the background.
It can fork a parallel process and call a function of the class that will execute the task code.
Applications should create sub-classes to override the function that will execute the parallel task code.
The parallel task can take given parameters from the originating process. Property values may also be shared with the parallel task using shared memory.
The class can also kill the parallel task, check if it is killed or still running.
OBSOLETE. The current class is available at the following link.
AsyncTask enables proper and easy use of the thread. This class allows to perform background operations and publish results on the thread without having to manipulate threads and/or handlers. More information.
- PHP version ~5.3.3
- Module installed pcntl and posix
- All functions pcntl, posix and shm removed from the directive disable_functions
1) Install composer
2) Follow in the project folder:
composer require dmamontov/asynctask ~1.0.5
composer.json your project will be added to the library
dmamontov/asynctask, who settled in the folder
vendor/. In the absence of a config file or folder with vendors they will be created.
If before your project is not used
composer, connect the startup file vendors. To do this, enter the code in the project:
Example of work
class TestTask extends AsyncTask
protected function onPreExecute()
protected function doInBackground($parameters)
protected function onPostExecute($result)
$task = new TestTask();
||Applications that use this package
AsyncTask enables proper and easy use of the thread.
If you know an application of this package, send a message to the author to add a link here.