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

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

Currently the finalizers in ZQueue are uninterruptible but we could be interrupted between setting the shutdown flag and running the finalizers, which leaves us in a somewhat undefined state where the queue says it has been shutdown but actually hasn't been shutdown yet. We can move the uninterruptible around the outer scope to ensure that if the shutdown flag is set the finalization logic will run as well.

@adamgfraser adamgfraser requested review from iravid and jdegoes February 1, 2021 17:18
@jdegoes jdegoes merged commit a337d83 into zio:master Feb 4, 2021
@adamgfraser adamgfraser deleted the shutdown branch February 4, 2021 23:54
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.

2 participants