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

Change semantics of EmbeddedChannel to match other transports more cl… #9529

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

normanmaurer
Copy link
Member

…osely.

Motiviation:

EmbeddedChannel currently is quite differently in terms of semantics to other Channel implementations. We should better change it to be more closely aligned and so have the testing code be more robust.

Modifications:

  • Change EmbeddedEventLoop.inEventLoop() to only return true if we currenlty run pending / scheduled tasks
  • Change EmbeddedEventLoop.execute(...) to automatically process pending tasks if not already doing so
  • Adjust a few tests for the new semantics (which is closer to other Channel implementations)

Result:

EmbeddedChannel works more like other Channel implementations

…osely.

Motiviation:

EmbeddedChannel currently is quite differently in terms of semantics to other Channel implementations. We should better change it to be more closely aligned and so have the testing code be more robust.

Modifications:

- Change EmbeddedEventLoop.inEventLoop() to only return true if we currenlty run pending / scheduled tasks
- Change EmbeddedEventLoop.execute(...) to automatically process pending tasks if not already doing so
- Adjust a few tests for the new semantics (which is closer to other Channel implementations)

Result:

EmbeddedChannel works more like other Channel implementations
@normanmaurer
Copy link
Member Author

Motivated by #9489 (comment)

@normanmaurer normanmaurer merged commit 3099bbc into master Sep 4, 2019
@normanmaurer normanmaurer deleted the embedded_semantics branch September 4, 2019 10:00
violetagg added a commit to reactor/reactor-netty that referenced this pull request Jun 24, 2022
violetagg added a commit to reactor/reactor-netty that referenced this pull request Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants