Skip to content

refactor: replace std::thread::spawn with tokio::task::spawn_blocking… - #136

Merged
Cleboost merged 1 commit into
masterfrom
refactor/unify-task-scheduling
May 10, 2026
Merged

Cleboost merged 1 commit into
masterfrom
refactor/unify-task-scheduling

Conversation

@Cleboost

Copy link
Copy Markdown
Owner

This pull request refactors the way file downloads are executed in the ExplorerHandle implementation to improve async runtime usage and thread management.

Async runtime and threading improvements:

  • Replaces the use of std::thread::spawn with tokio::runtime::Handle::spawn_blocking for running the blocking download_file_sync operation, ensuring better integration with the Tokio async runtime and avoiding potential runtime conflicts. (src/ui/file_explorer.rs)

@Cleboost
Cleboost merged commit 17d2963 into master May 10, 2026
1 check passed
@Cleboost
Cleboost deleted the refactor/unify-task-scheduling branch May 10, 2026 23:44
Cleboost added a commit that referenced this pull request Nov 4, 2026
#136)

refactor: replace std::thread::spawn with tokio::task::spawn_blocking for DND file prep
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