-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(console): add warning for tasks that never yield (#439)
feat(console): add warning for tasks that never yield (#439) Adds a new warning for tasks that have never yielded. This is more complicated than it sounds, because under the previous behavior, tasks are only linted when they are created or updated. A task that never yields doesn't get updated, so if it gets linted before the "never yielded" threshold is reached (defaults to 1 second), the warning returns false and the task won't get linted again. To solve this problem, warnings can now return a response that requests to be rechecked later. In practice, this later is on the next update cycle, at which point the task may again request to be rechecked later. For this warning, the overhead will likely be only a single recheck after task creation (and the fact that we need to store those task IDs between updates). We will have to consider the performance impact of any new warnings which may request rechecks as they are added. Co-authored-by: Hayden Stainsby <hds@caffeineconcepts.com>
- Loading branch information
Showing
4 changed files
with
180 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters