reactor / reactor-core

Non-Blocking Reactive Foundation for the JVM
http://projectreactor.io
Apache License 2.0
4.93k stars 1.2k forks source link

Skip automatic context-propagation in Flux.generate #3848

Closed chemicL closed 2 months ago

chemicL commented 2 months ago

As Flux.generate uses SynchronousSink, which should not be used asynchronously, we can eliminate the unnecessary ThreadLocal restoration from this operator.

Related to #3840.

chemicL commented 2 months ago

Thanks for the review @violetagg :)