Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework-message-queue
CallbackInvoker.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\MessageQueue
;
8
12
class
CallbackInvoker
13
{
22
public
function
invoke
(
QueueInterface
$queue
, $maxNumberOfMessages, $callback)
23
{
24
for
(
$i
= $maxNumberOfMessages;
$i
> 0;
$i
--) {
25
do
{
26
$message
=
$queue
->dequeue();
27
}
while
(
$message
===
null
&& (sleep(1) === 0));
28
$callback(
$message
);
29
}
30
}
31
}
$queue
$queue
Definition:
queue.php:21
Magento\Framework\MessageQueue\CallbackInvoker
Definition:
CallbackInvoker.php:12
$message
$message
Definition:
notifications.php:7
Magento\Framework\MessageQueue
Definition:
BatchConsumer.php:6
Magento\Framework\MessageQueue\QueueInterface
Definition:
QueueInterface.php:13
$i
$i
Definition:
gallery.phtml:31
Magento\Framework\MessageQueue\CallbackInvoker\invoke
invoke(QueueInterface $queue, $maxNumberOfMessages, $callback)
Definition:
CallbackInvoker.php:22