rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
54.15k stars 10.16k forks source link

docs: add more info in threads #1944

Closed Selflocking closed 7 months ago

Selflocking commented 7 months ago

info.toml:

[[exercises]]
name = "threads3"
path = "exercises/threads/threads3.rs"
mode = "test"
hint = """
An alternate way to handle concurrency between threads is to use
a mpsc (multiple producer, single consumer) channel to communicate.
With both a sending end and a receiving end, it's possible to
send values in one thread and receive them in another.
Multiple producers are possible by using clone() to create a duplicate
of the original sending end.
See https://doc.rust-lang.org/book/ch16-02-message-passing.html for more info.
"""

threads3'hint contains this link, so it should be placed in Further Information

shadows-withal commented 7 months ago

@all-contributors please add @Selflocking for content

allcontributors[bot] commented 7 months ago

@shadows-withal

I've put up a pull request to add @Selflocking! :tada: