2.0.3 • Published 12 days ago

filter-async-rxjs-pipe v2.0.3

Weekly downloads
36
License
Apache-2.0
Repository
github
Last release
12 days ago

filter-async-rxjs-pipe

Some pipeable functions for rxjs 7+ which accept predicate lambdas with async return value (Promise or Observable).

BREAKING CHANGE from ^2.0.0: This library now requires rxjs 7.0.0 or higher!

Usage

See filter-async.test.ts in Github for usage examples.

Provided rxjs 7+ pipes

filterByPromise

This rxjs 7+ pipe accepts a predicate function which returns a Thenable<boolean> for filtering.
(e.g. any object with a 'then' method === Promise and custom promise implementations)

filterAsync

This rxjs 7+ pipe accepts a predicate function which returns an Observable<boolean> for filtering.

Note

Both of these functions have a parallel flag to indicate, that they should run the predicate function in parallel for each emitted event from the source observable. However, this does not work currently and should be improved in a later release.

2.0.3

12 days ago

2.0.2

12 days ago

2.0.1

22 days ago

2.0.0

22 days ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.5

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago