-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implemented async printing in CLI (#130)
This commit implements asynchronous printing in the CLI by having a printing task that handles all printing, and having other tasks just send messages to say they want something printed. This ensures nothing interleaves while doing async printing, and that printing doesn't block the workers. This commit also introduces a structured Msg type for what gets printed, handling the different cases of stdout vs. stderr and plain vs. JSON output. Signed-off-by: Andrew Lilley Brinker <[email protected]>
- Loading branch information
1 parent
0e0a01e
commit b03f22c
Showing
2 changed files
with
163 additions
and
93 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