Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@regiskuckaertz
Copy link
Member

@regiskuckaertz regiskuckaertz commented Mar 13, 2019

Addresses

Note that the current method of sending a single interrupt to the thread may not work. We may have to put that in a while loop and try a few times.

@regiskuckaertz regiskuckaertz requested a review from jdegoes March 13, 2019 11:36

if (looping) {
n += 1
Thread.sleep(base * n)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last note: probably good to bound this at something like 50ms. We don't want threads that fail to interrupt to cause this fiber to lock up a thread for long periods.

@regiskuckaertz regiskuckaertz merged commit bc0e44a into zio:master Mar 16, 2019
@regiskuckaertz regiskuckaertz deleted the rk-while-interrupt branch March 16, 2019 13:28
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.

3 participants