Skip to content
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

Clean up references to fusion in MonoSubscriber comments #3261

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1732,14 +1732,13 @@ public final boolean set(Subscription s) {
/**
* A Subscriber/Subscription barrier that holds a single value at most and properly gates asynchronous behaviors
* resulting from concurrent request or cancel and onXXX signals.
* Publisher Operators using this Subscriber can be fused (implement Fuseable).
*
* @param <I> The upstream sequence type
* @param <O> The downstream sequence type
*/
public static class MonoSubscriber<I, O>
implements InnerOperator<I, O>,
Fuseable, //for constants only
Fuseable,
QueueSubscription<O> {

protected final CoreSubscriber<? super O> actual;
Expand Down Expand Up @@ -1875,8 +1874,7 @@ public void request(long n) {
if (s == CANCELLED) {
return;
}
// if the any bits 1-31 are set, we are either in fusion mode (FUSED_*)
// or request has been called (HAS_REQUEST_*)
// if any bits 1-31 are set, request(n) has been called (HAS_REQUEST_*)
if ((s & ~NO_REQUEST_HAS_VALUE) != 0) {
return;
}
Expand Down