@esfx/async-iter-fromsync
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @esfx/async-iter-fromsync

Weekly Downloads

7

Version

1.0.0

License

Apache-2.0

Unpacked Size

23.7 kB

Total Files

8

Last publish

Collaborators

  • rbuckton