Concurrent.php 640 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: Zip
 * Date: 14/12/16
 * Time: 下午5:05
 */

namespace Hood;

use Hood\Concurrent\Yar;
use Hood\Concurrent\Http;

class Concurrent
{
    /**
     * @param $url
     * @return Yar\Client
     */
    static public function yarClient($url)
    {
        return new Yar\Client($url);
    }

    /**
     * @param $uri
     * @return Yar\Concurrent
     */
    static public function yarConcurrent($uri)
    {
        return new Yar\Concurrent($uri);
    }

    /**
     *
     * @return Http\CurlMulti
     */
    static public function curlMulti()
    {
        return new Http\CurlMulti();
    }
}