1.0.0 • Published 10 months ago

@esfx/async-iter-fromsync v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
10 months ago

@esfx/async-iter-fromsync

An API to convert an ECMAScript Iterable into an AsyncIterable.

Overview

Installation

npm i @esfx/async-iter-fromsync

Usage

import { toAsyncIterable } from "@esfx/async-iter-fromsync";

async function f<T>(source: AsyncIterable<T> | Iterable<T | PromiseLike<T>>) {
    const asyncIterable = toAsyncIterable(source);
    ...
}

API

You can read more about the API here.