-
Notifications
You must be signed in to change notification settings - Fork 18
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
combineLatest pushEach strategy #55
Comments
|
Also here
|
For example julia> subscribe!(combineLatest(of(nothing), from([ 1, 2 ])), logger())
[LogActor] Data: (nothing, 1)
[LogActor] Data: (nothing, 2)
[LogActor] Completed |
Hello @bvdmitri, Thank you for taking the time. I am, in fact, looking for
Something like subscribe!(combineLatest(merged(of(nothing),source1), merged(of(nothing), source2)), logger()) I'll look into it but it looks like I have to generate fake signals to get combineLatest, while pushEach() describes a trigger as soon as ANY input emits, which is exactly what I'm looking for! :) Have a great weekend. |
The problem is that julia> a = combineLatest(completed() |> default_if_empty(nothing) |> async(0), from([1,2]) |> async(0))
CombineLatestObservable(Tuple{Any, Int64})
julia> subscribe!(a, logger())
[LogActor] Data: (nothing, 1)
[LogActor] Data: (nothing, 2)
CombineLatestSubscription() |
Perhaps using
Optionally skipping the first emission where both fire
|
start_with seems to be the best option here. Thanks! |
Hello,
combineLatest
offers bothpushEach()
andpushNew()
strategies.From the documentation, one would expect the first to publish at the first update of any of its sources and the latter to publish only after all sources have emitted at least once.
But
yields
While I expected to get
(nothing, 1), (nothing, 2)
before completion.Am I reading the documentation right?
Would another operator yield as soon as ANY source yields?
Thank you ❤️
The text was updated successfully, but these errors were encountered: