From dd7557089817d2bd5697eec6946e6e3983bd6109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Besir=20Hor=C3=A1=C4=8Dek?= Date: Tue, 30 Oct 2018 19:43:18 +0100 Subject: [PATCH] Fixed Class in Asynchronous usage example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca02434..b51c26c 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ $channel->qos( Bunny supports both synchronous and asynchronous usage utilizing [ReactPHP](https://github.com/reactphp). The following example shows setting up a client and consuming a queue indefinitely. ```php -(new Async\Client($eventLoop, $options))->connect()->then(function (Client $client) { +(new Async\Client($eventLoop, $options))->connect()->then(function (Async\Client $client) { return $client->channel(); })->then(function (Channel $channel) { return $channel->qos(0, 5)->then(function () use ($channel) { @@ -168,7 +168,7 @@ Bunny supports both synchronous and asynchronous usage utilizing [ReactPHP](http }); })->then(function (Channel $channel) use ($event) { $channel->consume( - function (Message $message, Channel $channel, Client $client) use ($event) { + function (Message $message, Channel $channel, Async\Client $client) use ($event) { // Handle message $channel->ack($message);