@ricsam/rxjs-async-iterator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Async iterators for RxJS

Adds async iterators (aka for-await-of loops)

Installation

The package is served via npm:

npm i --save rxjs-async-iterator

Usage

import {from} from 'rxjs';
import {delay} from 'rxjs/operators';
import {toAsyncIterable} from 'rxjs-async-iterator';

const numbers$ = from([1, 2, 3]).pipe(delay(100));

for async (const value of toAsyncIterable(numbers$)) {
    console.log(value);
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10

Package Sidebar

Install

npm i @ricsam/rxjs-async-iterator

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

7.59 kB

Total Files

13

Last publish

Collaborators

  • ricsam