eclogue/bulrush

There is no license information available for the latest version (dev-master) of this package.

dev-master 2018-01-20 09:48 UTC

This package is auto-updated.

Last update: 2024-04-21 19:54:16 UTC


README

In the meanwhile I smile and I sing all alone. In the meanwhile the air is filling with the perfume of promise.

overview

php coroutine control flow. High performance yield handlers. 

Install

`composer require eclogue/bulrush`

Usage

use Bulrush\Scheduler;

function gen () {
    $url = 'https://github.com/eclogue/bulrush';
    $response = yield file_get_contents($url);
    
    return $response;
}

$scheduler = new Scheduler();
$scheduler->add(gen());
$scheduler->run();