Closed RyanHurst closed 5 years ago
What happens here is that in the C++ SDK, we currently only register one callback. With your code above, it does register armed()
twice, and therefore only one stays. We don't want that behavior in Java.
So the solution is, in the Java SDK, to share()
the stream (Flowable
) between all the callers, so you can call telemetry.armed().subscribe()
as many times as you want. That's how we do in the Swift SDK already.
so I’ve found a strange race condition. sometimes this will output:
and then it will just repeat indefinitely
then sometimes this will output: