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

use new Disposable.Composite to offer ParallelFlux#subscribe(lambda...) : Disposable #800

Closed
smaldini opened this issue Aug 21, 2017 · 0 comments
Labels
warn/api-change Breaking change with compilation errors
Milestone

Comments

@smaldini
Copy link
Contributor

smaldini commented Aug 21, 2017

Like this

@SuppressWarnings("unchecked")
		LambdaSubscriber<? super T>[] subscribers = new LambdaSubscriber[parallelism()];

		int i = 0;
		while(i < subscribers.length){
			subscribers[i++] =
					new LambdaSubscriber<>(onNext, onError, onComplete, onSubscribe);
		}


		onLastAssembly(this).subscribe(subscribers);
		return Disposable.composite(subscribers);
@smaldini smaldini added the type/enhancement A general enhancement label Aug 21, 2017
@smaldini smaldini added this to the 3.1.0.RC1 milestone Aug 21, 2017
@simonbasle simonbasle added warn/api-change Breaking change with compilation errors and removed type/enhancement A general enhancement labels Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
warn/api-change Breaking change with compilation errors
Projects
None yet
Development

No branches or pull requests

2 participants