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

Asynchronous boundaries #18

Open
jroper opened this issue Jun 12, 2018 · 1 comment
Open

Asynchronous boundaries #18

jroper opened this issue Jun 12, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@jroper
Copy link
Member

jroper commented Jun 12, 2018

We may want to provide the ability to introduce asynchronous boundaries into streams, such that different parts of a stream can have different execution contexts, buffering strategies, etc. One possibility to provide this is to support the following method:

public ProcessorBuilder<T, R> async(ReactiveStreamsEngine engine);

This would cause all the stages prior to this stage to be executed using the passed in engine (which may have a custom configuration), and means that each engine is free to define what customization of execution attributes it supports. All subsequent stages would be run by whatever engine is passed to the eventual build method (or, the next async method). The underlying mechanism for doing the async boundary would be to use the passed in engine to build the Processor or Publisher, and then connecting the newly built Processor or Publisher via the subscribe method when it's run.

@jroper jroper added enhancement New feature or request help wanted Extra attention is needed streams labels Jun 12, 2018
@jroper jroper added this to the streams-1.1 milestone Jun 19, 2018
@jroper jroper removed the streams label Aug 10, 2018
@Emily-Jiang
Copy link
Member

Emily-Jiang commented Jun 24, 2020

Based on @cescoffier 's comment, this is only related to upstream to downstream events.

Can add emitOn(Executor executor) on PublishBuilder and ProcessorBuilder

@Emily-Jiang Emily-Jiang modified the milestones: 2.0, Future Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants