Concurrent.php
640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?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();
}
}