public function isBusy() { return !!$this->requests; }
protected function waitFor(StreamingClient $client) { $this->assertTrue($client->isBusy()); while ($client->isBusy()) { $this->loop->tick(); } }