PHP Guzzle 5 - Post 请求不是异步的?

PHP Guzzle 5 - Post Request Not Asynchronous?

我有以下 Guzzle 5 请求:

$this->guzzle->post("http://endpoint/i/control", array(
    'body' => array(
        'keyone' => 'valueone',
        'keytwo' => 'valuetwo' 
    ),
    'future' => true
));

我的印象是上面是异步操作,因为 future 键设置为 true。我控制上述请求命中的端点,当我在为端点提供服务的脚本中放置 5 秒休眠函数时,我的请求需要 5 秒的时间。

如何使用 Guzzle 5 处理真正的非阻塞异步请求?

事实证明,要使用 Guzzle 5 执行真正的异步操作,您必须将它固定到 ReactPHP 之类的东西上 - 这给了 PHP 您在 [= 中看到的那种事件循环行为14=].