about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-12-22 02:16:01 +0800
committerIvan Tham <pickfire@riseup.net>2021-06-12 14:56:46 +0800
commit0f3c7d18fb1213ad285173210820924b76b534a1 (patch)
treee424e00a04a8576bdd0ea37efd9a0e0595106917 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent11c94a197726b6a981828cb1837d7c3eed1b841d (diff)
downloadrust-0f3c7d18fb1213ad285173210820924b76b534a1.tar.gz
rust-0f3c7d18fb1213ad285173210820924b76b534a1.zip
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>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions