Skip to content

Add Pipeline::apply()#27

Open
trowski wants to merge 1 commit into
1.xfrom
apply
Open

Add Pipeline::apply()#27
trowski wants to merge 1 commit into
1.xfrom
apply

Conversation

@trowski

@trowski trowski commented Jun 27, 2026

Copy link
Copy Markdown
Member

I had the idea to expose a way for a mapper function to stop pipeline consumption early, like we do internally with take() and takeWhile(). This new apply() function plus Emission class was the result. It is then used to implement other methods such as take(), etc.

I'm not certain this is necessary. takeWhile() can fill this use-case, but that path does require defining the mapping and stop logic in separate functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant