-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Allow gathering a specific amount of values instead of all of them #5
Comments
Sure, but should be called |
const observableToPromise = require('observable-to-promise');
(async () => {
console.log(await observableToPromise(Observable.of(1, 2, 3, 4), {maximumValues: 5}));
//=> [1, 2, 3, 4]
})(); |
Then it's not the same purpose as What's your use-case for needing max? |
I have an observable that emits newly received data but I only want the very next chunk of data emitted and nothing else.
An observable could |
Alright 👍🏻 |
|
It would be useful if this module could only take a specific amount of values from an observable to achieve a similar purpose as p-event:
// @sindresorhus
The text was updated successfully, but these errors were encountered: