Home Manual Reference Source

src/fromAsyncIterable.js

import fromIterator from './fromIterator.js';

/**
 * Converts an asynchronous iterable to a tape.
 *
 * @function
 * @param {AsyncIterable} _iterable - The iterable to convert.
 * @returns {Tape} The converted tape.
 */
export default (_iterable) => fromIterator(_iterable[Symbol.asyncIterator]());