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

Timeout on waiting for incoming WS connections #243

Open
khionu opened this issue Aug 23, 2019 · 0 comments
Open

Timeout on waiting for incoming WS connections #243

khionu opened this issue Aug 23, 2019 · 0 comments

Comments

@khionu
Copy link

khionu commented Aug 23, 2019

I would like to be able to run server.accept() and have it block for a Duration, after which I have an opportunity to perform other logic before continuing my loop.

My purpose is so I can implement a kill switch (an Arc<AtomicBool>, updated elsewhere) and end my thread if it's flipped.

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