Project Reactor, using a Flux sink outside of the creation lambda
问题 When my service starts up, I want to construct a simple pipeline. I'd like to isolate the Flux sink, or a Processor, to emit events with. Events will be coming in from multiple threads and should be processed according to the pipeline's subscribeOn() specification, but everything seems to run on the main thread. What is the best approach? I've attached my attempts below. (I'm using reactor-core v3.2.8.RELEASE.) import org.junit.jupiter.api.Test; import reactor.core.publisher.DirectProcessor;