#thread #shared #process #wait #output #timeout

shared_thread

similar to shared_child, but for threads instead of processes

2 unstable releases

new 0.2.0 Jun 15, 2025
0.1.0 May 2, 2025

#321 in Concurrency

Download history 44/week @ 2025-04-30 2040/week @ 2025-05-07 3042/week @ 2025-05-14 3098/week @ 2025-05-21 3481/week @ 2025-05-28 6913/week @ 2025-06-04 8699/week @ 2025-06-11

22,461 downloads per month
Used in 28 crates (via duct)

MIT license

18KB
210 lines

This crate provides SharedThread, a wrapper around std::thread::JoinHandle that lets multiple threads wait on a shared thread and read its output, with an optional timeout.

For example code, see the SharedThread example.


shared_thread.rs Actions Status crates.io docs.rs

This crate provides SharedThread, a wrapper around std::thread::JoinHandle that lets multiple threads wait on a shared thread and read its output.

No runtime deps