You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Existing sample operator doesn't emit last emitted value on completion, which makes it not useful for streams which emit a final value as last element before complete. On my practice it used often for such things as a stream which represent progress and final result (when sealed class Progress|Success is emitted)
I propose to add emitLast argument with default value false to sample operator, so it will allow supporting this use case.
Existing sample operator doesn't emit last emitted value on completion, which makes it not useful for streams which emit a final value as last element before complete. On my practice it used often for such things as a stream which represent progress and final result (when sealed class Progress|Success is emitted)
I propose to add emitLast argument with default value
false
to sample operator, so it will allow supporting this use case.This behavior already exist in RxJava2, see related issue for RxJava2
The text was updated successfully, but these errors were encountered: