You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I would like to be able to run
server.accept()
and have it block for aDuration
, 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.The text was updated successfully, but these errors were encountered: