Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add async operators #18

Open
andres-kovalev opened this issue Aug 31, 2022 · 0 comments
Open

Add async operators #18

andres-kovalev opened this issue Aug 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@andres-kovalev
Copy link
Owner

Something similar to Promise.all(), but for streams:

import { create, asyncFilter, take } from 'pragmatic-streams';

take(2,
  asyncFilter(value => value > 1,
    create(
      i => Promise.resolve(i),
      5
    )
  )
);

or maybe something like:

...
take(2,
  async(
    filter(value => value > 1,
      create(
        i => Promise.resolve(i),
        5
      )
    )
  ) 
);
@andres-kovalev andres-kovalev added the enhancement New feature or request label Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant