-
Notifications
You must be signed in to change notification settings - Fork 157
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
feat: Add emitMulti with Spliterator support #1776
base: main
Are you sure you want to change the base?
Conversation
@pjfanning Would you like to take a look at this, thank. |
Can you give some background on who needs this? Is it intended that anyone can use this or do you just want it for #1775? |
For now, only in #1775 , but it's generally |
the code is protected - so other users won't easily be able to access it |
* is needed and reinstalls the current handler upon receiving an `onPull()` | ||
* signal (before invoking the `andThen` function). | ||
*/ | ||
final protected def emitMultiple[T](out: Outlet[T], elems: Spliterator[T], andThen: () => Unit): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pjfanning It the same access level as the other emitMultiple
method, its been used in a sub class of GraphStage
Motivation:
Add Spliterator support for emitMulti, reducing overhead when working with java stream.
Result:
less overhead
I would like rebase #1775 on this.