Example #1
0
 /**
  * Create a new generator invoker
  * @param Client $client
  */
 function __construct(Client $client)
 {
     $this->client = $client;
     parent::__construct(function ($resolve, $reject) {
         return $this->cancel($resolve, $reject);
     });
 }