-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cancellation tokens in stead of channels for shutting down (#136)
* add cancelation token for the notifications task now, in stead of a channel, the task recieves a cancelation token, monitoring that one. Not much of a change from the previous model, but at least the intent is clearer untill all tasks gain the ability to use the cancelation token, the sigint signal handler will have to support both options of shutting down add tokio-utils to workspace dependencies and make tts use cancelation tokens fix clippy warnings and add cancellation token to the at-spi event processor add cancellation tokens to another at-spi processor add cancellation tokens to the input processing handler add cancellation tokens to the screenreader events processor, the one which handles input events fix formatting problems reported by check remove the last use of the shutdown channel from the codebase, the sigint watcher now only cancels that token Update ssip-client-async version Move Receives insated of mutably borrinwg them for the duration of the running of Odilia Update Cargo.lock Cargo format Fix clippy issues Update cargo lock * timeout all the things this introduces a timeout of hardcoded 500 milliseconds to the future which awaits all tasks to complete. If, for example, a task is stuck somewhere and doesn't answer to cancelation tokens, we will exit the program forcefully, with an error code and the error will be displayed before exitting. I believe around 500 milliseconds is enough for all tasks to get unstuck, but this will eventually be changeable within the configuration file. For now though, the odilia is hanging on exit problem should probably be relatively well fixed with this
- Loading branch information
1 parent
dc84bd9
commit b77a72d
Showing
10 changed files
with
265 additions
and
195 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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