2017 © Pedro Peláez
 

library asynctask

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.

image

vxdiv/asynctask

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.

  • Wednesday, July 27, 2016
  • by vxdiv
  • Repository
  • 1 Watchers
  • 0 Stars
  • 139 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Build Status Latest Stable Version License Total Downloads PHP Classes, (*1)

AsyncTask

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., (*2)

Requirements

  • PHP version ~5.3.3
  • Module installed pcntl and posix
  • All functions pcntl, posix and shm removed from the directive disable_functions

Installation

1) Install composer, (*3)

2) Follow in the project folder:, (*4)

composer require dmamontov/asynctask ~1.0.5

In config 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., (*5)

If before your project is not used composer, connect the startup file vendors. To do this, enter the code in the project:, (*6)

require 'path/to/vendor/autoload.php';

Example of work

class TestTask extends AsyncTask
{
    protected function onPreExecute()
    {
    }

    protected function doInBackground($parameters)
    {
        return $parameters;
    }

    protected function onPostExecute($result)
    {
        echo $result;
    }
}

$task = new TestTask();
$task->execute('test');

The Versions

27/07 2016

dev-master

9999999-dev http://www.slobel.ru/

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.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3

 

The Development Requires

by Dmitry Mamontov

task asynchronous background work days

27/07 2016

dev-fix_shmid

dev-fix_shmid http://www.slobel.ru/

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.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3

 

The Development Requires

by Dmitry Mamontov

task asynchronous background work days

11/06 2015

1.0.5

1.0.5.0 http://www.slobel.ru/

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.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3

 

The Development Requires

by Dmitry Mamontov

task asynchronous background work days

09/06 2015

1.0.4

1.0.4.0 http://www.slobel.ru/

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.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Dmitry Mamontov

task asynchronous background work days

04/06 2015

1.0.3

1.0.3.0 http://www.slobel.ru/

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.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Dmitry Mamontov

task asynchronous background work days

18/04 2015

1.0.2

1.0.2.0 http://www.slobel.ru/

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.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3

 

by Dmitry Mamontov

task asynchronous background work days