-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Is there a blockUntil implementation? #4336
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
Comments
I can't remember any |
My bad, I meant |
And yes, I think that pr is similar to what I want |
That sounds like it would be named |
Sure, that makes sense. So I'm guessing there's nothing in RxJava that handles that yet. If no ones working on it, then I can take a shot at it. Basically it would queue up data (maybe up to a specified limit) and then begins emissions after the condition is met |
What is your use case? |
To be as specific without going into implementation details: An additional note, we can't stop the user from invoking "B" before "A" is done. Not because of requirements, but because of the nature of mobile devices. In our first attempt, we just canceled "A" when "B" occurred and started again. This can lead to a slower start time for the user. The current implementation waits for "A" to finish and then grabs the last state "B" to invoke. That's obviously not ideal because we can possibly lose data |
Sounds like you need |
That might work. I'll try that out and see if it works for our use-case. Thanks |
I dug a bit more into I think I found another way to fix my issue and not lose data. However, I still think having a |
I'm closing this issue due to inactivity. If you have further input on the issue, don't hesitate to reopen this issue or post a new one. |
I was searching through the docs and there doesn't seem to be any
blockUntil
. There's awaitUntil
anddoUntil
, but I was hoping for something a bit different.It would be nice to have a way to hold data until something triggers the "unblock". This way, after the "unblock" each piece of data can be grabbed without losing anything.
Are there plans to build a
blockUntil
? I'd be happy to help contribute on that.The text was updated successfully, but these errors were encountered: