/** * Make an iterable async. * * If the iterable is synchronous (e.g., defines `Symbol.iterator`), converts it to an async iterable. If the iterable is asynchronous (e.g., defines `Symbol.asyncIterator`), a copy is returned. * * In the unlikely event that both are defined, a copy of the async "part" is returned and the sync part is ignored. * * @example * ```typescript * asyncify([1, 2, 3, 4]); * // => Asynchronous iterable yielding 1, 2, 3, 4 * ``` */ export default function asyncify(iterable: Iterable | AsyncIterable): AsyncIterable;