Example #1
0
 /**
  * Constructor.
  *
  * @param LoopInterface $eventLoop
  * @param array $options see {@link AbstractClient} for available options
  * @param LoggerInterface $log if argument is passed, AMQP communication will be recorded in debug level
  */
 public function __construct(LoopInterface $eventLoop = null, array $options = [], LoggerInterface $log = null)
 {
     $options["async"] = true;
     parent::__construct($options, $log);
     if ($eventLoop === null) {
         $eventLoop = Factory::create();
     }
     $this->eventLoop = $eventLoop;
 }
Example #2
0
 /**
  * Constructor.
  *
  * @param array $options
  */
 public function __construct(array $options = [])
 {
     $options["async"] = false;
     parent::__construct($options);
 }