Skip to content
Snippets Groups Projects
Commit 7768696a authored by orestis.malaspin's avatar orestis.malaspin
Browse files

need to add rayon and it's pretty much over

parent edd4e247
Branches
No related tags found
No related merge requests found
Pipeline #
...@@ -538,7 +538,8 @@ fn main() { ...@@ -538,7 +538,8 @@ fn main() {
}); });
println!("Recieved {:?}", rx.recv()); // recv FIFO println!("Recieved {:?}", rx.recv()); // recv FIFO
println!("Recieved {:?}", rx.recv()); println!("Recieved {:?}", rx.recv());
// when hdl/hdl2 are freed we know the channel is "closed". nobody can send new messages
} }
</code></pre> </code></pre>
...@@ -548,6 +549,13 @@ Ce qui se passe en mémoire ...@@ -548,6 +549,13 @@ Ce qui se passe en mémoire
![](figs/mem_channel.svg){#fig:mem_channel width=45%} ![](figs/mem_channel.svg){#fig:mem_channel width=45%}
# External crates
## `crates.io`
- These are the basic concurrency primitives in the Rust std.
- For more rely on crates: `rayon` for example.
# And many more # And many more
- Error handling: `Option`, `Result`. - Error handling: `Option`, `Result`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment