rust/library/std/src/sync
Ivan Tham 0f3c7d18fb Explain non-dropped sender recv in docs
Original senders that are still hanging around could cause
Receiver::recv to not block since this is a potential footgun
for beginners, clarify more on this in the docs for readers to
be aware about it.

Fix minor tidbits in sender recv doc

Co-authored-by: Dylan DPC <dylan.dpc@gmail.com>

Add example for unbounded receive loops in doc

Show the drop(tx) pattern, based on tokio docs
https://tokio-rs.github.io/tokio/doc/tokio/sync/index.html

Fix example code for drop sender recv

Fix wording in sender docs

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2021-06-12 14:56:46 +08:00
..
barrier std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
condvar Disable condvar::two_mutexes test on non-unix platforms. 2020-10-02 09:47:08 +02:00
mpsc Explain non-dropped sender recv in docs 2021-06-12 14:56:46 +08:00
mutex std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
once std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
rwlock std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
barrier.rs Fix nits 2020-09-20 18:37:05 +02:00
condvar.rs Move boxing and mutex checking logic of condvar into sys_common. 2020-10-02 09:47:08 +02:00
mod.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
mutex.rs (docs): make mutex error comment consistent with codebase 2020-10-07 11:48:26 -06:00
once.rs Fix nits 2020-09-20 18:37:05 +02:00
rwlock.rs Replace unneeded unsafe calls to .get() with calls to .get_mut() 2020-09-20 18:06:03 +02:00