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

Skip to content

Enhance ZStream#scheduleWith to not short-circuit the stream #1532

@iravid

Description

@iravid

Currently, when the schedule supplied to ZStream#scheduleWith signals completion, the stream is ended.

In this ticket, change the behavior to restart the schedule instead; for a stream with elements "A B C A B C", and a schedule (Schedule.exponential(2.millis) && Schedule.recur(2) && Schedule.const("Done")).map(_._2), this should be the resulting stream:

A |-2ms-| B |-4ms-| C |-8ms-| "Done" A |-2ms-| B |-4ms-| C |-8ms-| "Done"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions