With some kind of thread-safe message passing. In the Rust standard library, we get std::sync::mpsc : a Multiple-Producer, Single-Consumer message queue.
確定! 回上一頁