Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run formatters in parallel #15

Closed
zimbatm opened this issue Jan 26, 2021 · 0 comments · Fixed by #17
Closed

Run formatters in parallel #15

zimbatm opened this issue Jan 26, 2021 · 0 comments · Fixed by #17
Labels
enhancement New feature or request

Comments

@zimbatm
Copy link
Member

zimbatm commented Jan 26, 2021

Depends on #7

Once the formatters outputs are not forwarded to the shell anymore, it's possible to run them in parallel.

For each formatter, start a new thread with the list of files and command to execute.
The main thread waits on each thread to finish and return their result.

@zimbatm zimbatm added the enhancement New feature or request label Jan 26, 2021
brianmcgee added a commit that referenced this issue May 13, 2024
Closes #10

Signed-off-by: Brian McGee <[email protected]>

Reviewed-on: https://git.numtide.com/numtide/treefmt/pulls/15
Reviewed-by: Jonas Chevalier <[email protected]>
Co-authored-by: Brian McGee <[email protected]>
Co-committed-by: Brian McGee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant