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

Add support from synchronous options #80

Merged
merged 1 commit into from
Mar 16, 2021
Merged

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Mar 16, 2021

Motivation:

NIO 2.27.0 added a customisation point to Channel to allow options to
be fetched synchronously if the caller is on the appropriate event loop.

Modifications:

  • Add synchronous options to SSHChildChannel
  • Promote event loop assertions to preconditions

Result:

Callers can fetch channel options synchronously on 'SSHChildChannel's.

@glbrntt glbrntt requested a review from Lukasa March 16, 2021 10:48
Motivation:

NIO 2.27.0 added a customisation point to `Channel` to allow options to
be fetched synchronously if the caller is on the appropriate event loop.

Modifications:

- Add synchronous options to SSHChildChannel
- Promote event loop assertions to preconditions

Result:

Callers can fetch channel options synchronously on 'SSHChildChannel's.
Copy link
Member

@weissi weissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! lgtm

@Lukasa Lukasa added the patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Mar 16, 2021
@Lukasa Lukasa merged commit 5d1cfde into apple:main Mar 16, 2021
@glbrntt glbrntt deleted the gb-sync-option branch April 28, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants