caolan / caolan/highland

FlatTap

Open
#616 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

When dealing with promises it would be nice to be able to do a `stream.flatTap(_(save))` which would disregard the output but wait for the promise to resolve. (shorthand for `stream.flatMap(item => _(save(item).then(() => item)))`

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start from the stream API's flatMap implementation and its operator tests. Add flatTap with the described promise-waiting behavior while preserving each original item, then verify the operator's promise and output semantics in the relevant stream tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
stream-processing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.