Smalot\Magento\RemoteAdapter::handleCallbacks PHP Method

handleCallbacks() protected method

protected handleCallbacks ( Smalot\Magento\MultiCallQueueInterface $queue, array $results )
$queue Smalot\Magento\MultiCallQueueInterface
$results array
    protected function handleCallbacks(MultiCallQueueInterface $queue, $results)
    {
        foreach ($queue as $position => $item) {
            $callback = $item['callback'];
            if (is_callable($callback)) {
                call_user_func($callback, $results[$position]);
            }
        }
    }