Skip to content

Implement Observable#bufferWhile and bufferWhileInclusive - #1265

Merged
Avasil merged 3 commits into
monix:series/3.xfrom
Avasil:Observable#bufferWhile
Sep 24, 2020
Merged

Avasil merged 3 commits into
monix:series/3.xfrom
Avasil:Observable#bufferWhile

Conversation

@Avasil

@Avasil Avasil commented Sep 12, 2020

Copy link
Copy Markdown
Collaborator

Fixes #1260

val toEmit = buffer.append(elem).toList
buffer = ListBuffer.empty
ack = out.onNext(toEmit)
} else if (buffer.nonEmpty) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Not 100% sure if we should emit empty buffer if it's false for the first element, or not

@Avasil
Avasil merged commit 4d6e907 into monix:series/3.x Sep 24, 2020
@Avasil
Avasil deleted the Observable#bufferWhile branch November 14, 2020 15:49
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.

Add Observable.bufferWhile and bufferWhileInclusive

1 participant