import { fromAsync } from "../../async/static/fromAsync" ; import { IParallelEnumerable } from "../../types" ; param source returns export const asAsync = < TSource > ( source ) => { async function * generator ( ) { for await ( const value of source ) { yield value ; } } return fromAsync ( generator ) ; } ;