O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

  1. Change the synchronous buffer size to 0 and see what happens. Figure out a way to make the code work with a zero buffer.
  2. Add a third receive call to the asynchronous code. Witness the block.
  3. Take a look at the state of select. At the time of writing, there's a macro, std::select!, which is a rather concise way of defining select loops. Give it a try.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required