Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Update ScheduledThreadPoolExecutor.cs #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benwulfe
Copy link

There is a small chance that -1 could be a calculated result for the next time to wait, which would result in an inifinite wait duration (instead of 0). Since AddTask will not Set if the new task isnt added in the first slot, this has the result of completely stalling the scheduler.

There is a small chance that -1 could be a calculated result for the next time to wait, which would result in an inifinite wait duration (instead of 0).  Since AddTask will not Set if the new task isnt added in the first slot, this has the result of completely stalling the scheduler.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant