Пример #1
0
 public function test_Client()
 {
     $client = Builder::createClient();
     $this->assertInstanceOf('G\\Gearman\\Client', $client);
 }
Пример #2
0
<?php

include __DIR__ . '/../vendor/autoload.php';
use G\Gearman\Builder;
$client = Builder::createClient();
$client->onSuccess(function ($response) {
    echo $response;
});
$client->doNormal('fast.process', "Hello");