2017 © Pedro Peláez
 

library semithread

Nohup interface simulating threaded env

image

aaugustyniak/semithread

Nohup interface simulating threaded env

  • Saturday, June 20, 2015
  • by artur-augustyniak
  • Repository
  • 1 Watchers
  • 1 Stars
  • 852 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

Simple API for starting non blocking jobs.

SemiThread

Right now this stuff works only under *nix systems. It's simple wrapper API for nohup exec call., (*2)

If you want i.e. send an email in process not attached to request/response cycle it is for you., (*3)

Installation

If you don’t have Composer yet, you should get it now., (*4)

  1. Add the package to your composer.json:, (*5)

    "require": {
      ...
      "aaugustyniak/semithread": "1.0.0",
      ...
    }
  2. Install:, (*6)

    $ php composer.phar install
  3. And use:, (*7)

First of all You must provide your implementations of: * Aaugustyniak\SemiThread\Cloneable * Aaugustyniak\SemiThread\SemiThread, (*8)

examples are provided in Aaugustyniak\SemiThread\ExampleImpl. ```php <?php, (*9)

    require_once "vendor/autoload.php";

    $payload = new StringPayload("This is Payload");
    $envelope = new ConfinedEnvelope($payload);
    $thread = new WriterThread($envelope);
    /**
     * Optional, redirect jobs output to file 
     */ 
    $thread->setOutput('/some/path/semi_threads.out');
    $thread->start();
    echo "Main process output\n";
    ...

The Versions

20/06 2015

dev-master

9999999-dev https://github.com/artur-augustyniak/SemiThread

Nohup interface simulating threaded env

  Sources   Download

MIT

The Development Requires

task async job worker thread non-blocking nohup

10/01 2015

1.0.0

1.0.0.0 https://github.com/artur-augustyniak/SemiThread

Nohup interface simulating threaded env

  Sources   Download

MIT

The Development Requires

task async job worker thread non-blocking nohup