$r->response->
cancel();
} yield $r =>
$chunk;
continue;
} if (null !==
$chunk->
getError()) { // no-op
} elseif ($chunk->
isFirst()) { $r->yieldedState = self::FIRST_CHUNK_YIELDED;
} elseif (self::FIRST_CHUNK_YIELDED !==
$r->yieldedState && null ===
$chunk->
getInformationalStatus()) { throw new \
LogicException(sprintf('Instance of "%s" is already consumed and cannot be managed by "%s". A decorated client should not call any of the response\'s methods in its "request()" method.',
get_debug_type($response),
$class ??
static::
class));
} foreach (self::
passthru($r->client,
$r,
$chunk,
$asyncMap) as $chunk) { yield $r =>
$chunk;
} if ($r->response !==
$response &&
isset($asyncMap[$response])) { break;
} }