コード例 #1
0
ファイル: BuilderTest.php プロジェクト: gonzalo123/gearman
 public function test_Client()
 {
     $client = Builder::createClient();
     $this->assertInstanceOf('G\\Gearman\\Client', $client);
 }
コード例 #2
0
ファイル: runFastClient.php プロジェクト: gonzalo123/gearman
<?php

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