-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot create a replay sink with zero size #2772
Comments
A workaround appears to be to use
|
@osi do you feel the workaround could be the recommended way of achieving this ? Otherwise we can look into reintroducing support for cc @OlegDokuka |
I'm fine with the workaround being the recommended way of achieving this. More explicit support for this would be nice, but also not required. (I use this construct in some of my test code when simulating external services) |
so as a first remediation, we could just document this workaround in the javadoc? if more production-like usecases surface later on we can consider adding a sink implementation that re-enables each usecase. |
Yes, I think documentation sufficient for now, and javadoc feels like an appropriate place for it. |
This commit documents `limit(Duration.ZERO)` as a possible alternative to `Sinks.many().replay().limit(0)`, which is forbidden. Fixes #2772.
Expected Behavior
Can create a sink using
To get a sink that:
Actual Behavior
Fails with
This is caused by #2741 , specifically,
I'm using it 😀
The text was updated successfully, but these errors were encountered: