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
Yes, that's correct behavior. Stream.once("foo") will send value once and complete immediately when first <~ is triggered because <~ works for both binding and firing.
There are several approaches to your desired behavior:
Use Stream.once("foo") |> delay(0) to delay firing until next run loop.
Use stream.progress(println) instead of <~.
(Maybe, there should have some new binding only operator like below)
letstream=Stream.once("foo").ownedBy(self)
stream.progress(println)//println <~| stream // `<~|` as binding only (not included in ver 0.12.x)
println <~ stream // `<~` as binding + fire
I wonder if it's correct behaviour, that println will be called once. If I now did something like:
The label would never change.
The text was updated successfully, but these errors were encountered: