takeCount = async (asyncIterator, count) => {
  const values = [];

  await null;
  // eslint-disable-next-line no-plusplus
  for (let i = 0; i < count; i++) {
    // eslint-disable-next-line no-await-in-loop
    const result = await asyncIterator.next();
    values.push(result.value);
  }
  return values;
}
@param {AsyncIterator} asyncIterator - The iterator to take from.
@param {number} count - The number of values to retrieve.