Skip to content

Make Stream.fromIterator sync type configurable#2933

Merged
mpilquist merged 2 commits intotypelevel:mainfrom
armanbilge:issue/2903
Jul 1, 2022
Merged

Make Stream.fromIterator sync type configurable#2933
mpilquist merged 2 commits intotypelevel:mainfrom
armanbilge:issue/2903

Conversation

@armanbilge
Copy link
Copy Markdown
Member

Fixes #2903, which I found new sympathy for while working on #2931.

This allows a third parameter to be passed to Stream.fromIterator indicating whether to use Delay, Blocking, Interruptible, or InterruptibleMany.

Comment on lines +3335 to +3336
def fromBlockingIterator[F[_]]: PartiallyAppliedFromBlockingIterator[F] =
new PartiallyAppliedFromBlockingIterator(blocking = true)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This signature change is binary-compatible because PartiallyAppliedFromBlockingIterator is an AnyVal for Boolean, just like PartiallyAppliedFromIterator.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stream.fromBlockingIterator is never interruptible

3 participants