Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@svroonland
Copy link
Contributor

@svroonland svroonland commented Sep 15, 2020

Implements #4189

@svroonland svroonland requested a review from iravid as a code owner September 15, 2020 12:07
* @param maxChunkSize Maximum number of queued elements to put in one chunk in the stream
*/
def fromQueue[R, E, O](queue: ZQueue[Nothing, R, Any, E, Nothing, O]): ZStream[R, E, O] =
def fromQueue[R, E, O](queue: ZQueue[Nothing, R, Any, E, Nothing, O], maxChunkSize: Int = 1024): ZStream[R, E, O] =
Copy link
Member

Choose a reason for hiding this comment

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

Can we use ZStream.DefaultChunkSize here and in fromQueueWithShutdown?

Copy link
Member

@iravid iravid left a comment

Choose a reason for hiding this comment

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

Small comment and this should be good to go.

Copy link
Member

@iravid iravid left a comment

Choose a reason for hiding this comment

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

Thank you @svroonland!

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.

2 participants