Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe.combineLatest: need a way to delay emitting values until some condition is true #307

Open
haf opened this issue Apr 19, 2018 · 1 comment

Comments

@haf
Copy link
Member

haf commented Apr 19, 2018

For example:

        Events.events
        |> Pipe.filter Message.isGauge
        |> Pipe.scan (Dictionary<PointName, int64>()) (fun state message ->
            fun m ->
              let k = gaugeKey message
              match state.TryGetValue k with
              | false, _ ->
                state.[k] <- 1L
                state
              | true, _ ->
                state.[k] <- state.[k] + 1L
                state
        )
        |> Pipe.combineLatest (Events.events |> Pipe.filter (Message.hasTag "summary"))
        |> Events.sink ["colours"]
@lust4life
Copy link
Contributor

combineLatest maybe expressed through bufferConditional ? can i see these implementation for more details ? scan here seems like some ticker ?

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

No branches or pull requests

2 participants