Skip to content

refactor: use Arc<Mutex<...>> for SectionCapture#1291

Draft
tonyfettes wants to merge 1 commit intomoonbitlang:mainfrom
tonyfettes:haoxiang/refactor-section-capture
Draft

refactor: use Arc<Mutex<...>> for SectionCapture#1291
tonyfettes wants to merge 1 commit intomoonbitlang:mainfrom
tonyfettes:haoxiang/refactor-section-capture

Conversation

@tonyfettes
Copy link
Copy Markdown
Contributor

@tonyfettes tonyfettes commented Dec 8, 2025

  • Related issues: None
  • PR kind: refactor

Summary

This PR refactor the SectionCapture passing logic to use Arc<Mutex<...>>, so that it is possible to move the stdout capturing task into a standalone coroutine/thread.

Metadata

  • Tests added/updated for bug fixes or new features
  • Compatible with Windows/Linux/macOS

@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com Bot commented Dec 8, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/moon/src/run/runtest.rs  59% smaller
  crates/moon/src/run/child.rs  51% smaller
  crates/moonbuild/src/section_capture.rs  48% smaller
  crates/moon/src/cli/run.rs  25% smaller

@tonyfettes tonyfettes force-pushed the haoxiang/refactor-section-capture branch from dd4a3c2 to aa4e681 Compare December 8, 2025 07:47
@tonyfettes tonyfettes force-pushed the haoxiang/refactor-section-capture branch from aa4e681 to 5dcf8cd Compare December 9, 2025 05:39
@tonyfettes tonyfettes marked this pull request as draft December 9, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant