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

Without the public constructor, the class is effectively internal + @discardableResults + configuring queue #35

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

migueldeicaza
Copy link

@migueldeicaza migueldeicaza commented Apr 28, 2020

This brings a constructor to the Environment class, without it, it is not possible to instantiate instances of it.

It also flags the various fluid-like APIs to be @discardableResults, to prevent errors from being raised when not using without a terminator.

Surfaces a way to configure the queue to be used for dispatching messages.

@migueldeicaza migueldeicaza changed the title Without the public constructor, the class is effectively internal Without the public constructor, the class is effectively internal + @discardableResults Apr 28, 2020
@migueldeicaza migueldeicaza changed the title Without the public constructor, the class is effectively internal + @discardableResults Without the public constructor, the class is effectively internal + @discardableResults + configuring queue May 3, 2020
@bes
Copy link

bes commented Aug 6, 2020

@migueldeicaza I feel like using this PR / your fork is the "right thing to do" currently, until these changes are merged into master. Thanks for sharing it!

@migueldeicaza
Copy link
Author

Of course, you can feel free to use my branch.

This enables for instance to start an SSH connection, and then
use various channels over it.

The SSHChannel no longer is a subclass of an SSHSession, which made
things awkward when attempting to use the session again.

Instead, the session is a field in the channel, and new channels can
be constructed from the session if this is available.

This also turns off the sample that defaulted to publicKey
authentication.
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.

2 participants