We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! I'm using version rxjava:2.2.19
rxjava:2.2.19
Faced with the need to have its own context for each thread in parallel processing. How to do this better?
Sintetic example on RxJava:
ThreadLocal<Context> context = .... // Thread load context Flowable.fromPublisher(...) .parallel() .runOn(Schedulers.computation()) .map(item -> transformWithContext(context.get(), item)) // <- map item with current context ... .sequential()
For example, in Reactor you can use the transformGroups method:
Flux.from(...) .parallel() .transformGroups(groupedFlux -> { Context ctx = new .... return groupedFlux .map(item -> transformWithContext(context.get(), item); }) .sequential()
This approach is similar to using groupBy. I couldn't find an analog to the transformGroupsmethod, or does it exist?
transformGroups
With best regards, Anton
The text was updated successfully, but these errors were encountered:
This type of operation is not supported in RxJava or any of the support libraries and there are no plans to add it.
Sorry, something went wrong.
All I can say is that it may happen in the near future as part of RxJavaExtensions: akarnokd/RxJavaExtensions#74
No branches or pull requests
Hi!
I'm using version
rxjava:2.2.19
Faced with the need to have its own context for each thread in parallel processing.
How to do this better?
Sintetic example on RxJava:
For example, in Reactor you can use the transformGroups method:
This approach is similar to using groupBy.
I couldn't find an analog to the
transformGroups
method, or does it exist?With best regards,
Anton
The text was updated successfully, but these errors were encountered: