We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de01815 commit 8289aeaCopy full SHA for 8289aea
examples/producer.php
@@ -24,15 +24,6 @@
24
echo 'messageID ' . $messageID . "\n";
25
}
26
27
-// Sending messages asynchronously
28
-for ($i = 0; $i < 10; $i++) {
29
- $producer->sendAsync(sprintf('hello-async %d', $i), function (string $messageID) {
30
- echo 'messageID ' . $messageID . "\n";
31
- });
32
-}
33
-// Add this line when sending asynchronously
34
-$producer->wait();
35
-
36
// Sending delayed messages
37
for ($i = 0; $i < 10; $i++) {
38
$producer->send(sprintf('hello-delay %d', $i), [
0 commit comments