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

Async listener #303

Merged
merged 18 commits into from
Jun 30, 2020
Merged

Async listener #303

merged 18 commits into from
Jun 30, 2020

Conversation

realcr
Copy link
Member

@realcr realcr commented Jun 30, 2020

Currently the Listener trait has a synchronous listen() method.
In some of our tests we start a listener, and then want to connect to the listener. Unfortunately, there is no way to know how long should we wait before we attempt to connect.

By having an asynchronous listen() we will be able to continue execution only after binding and listening has begun. This should eliminate multiple asynchronous sleep() invocations in our tests code.

@realcr realcr merged commit 622abef into master Jun 30, 2020
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.

1 participant