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

Clarify ssh connection state concurrency issue #5

Open
gaetanzanella opened this issue Nov 20, 2022 · 1 comment
Open

Clarify ssh connection state concurrency issue #5

gaetanzanella opened this issue Nov 20, 2022 · 1 comment

Comments

@gaetanzanella
Copy link
Owner

let connection = SSHConnection(...)
connection.stateUpdateHandler = { state in
    if state != connection.state {
        // ????
    }
}

This case can happen as the update callback is called asynchronously. Is it correct? We should check how NWConnection manages this case.

@gaetanzanella
Copy link
Owner Author

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

No branches or pull requests

1 participant