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:
const observableToPromise = require('observable-to-promise');
(async () => {
console.log(await observableToPromise.one(Observable.of(1, 2, 3, 4, 5)));
//=> 1
console.log(await observableToPromise(Observable.of(1, 2, 3, 4, 5), {maximumValues: 3}));
//=> [1, 2, 3]
})();
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too