All quizzes
Free quiz · 21 questions in the bank

Tokio quiz

Test your Tokio knowledge with a free interactive quiz — 21 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does it mean that a Rust `Future` is "lazy"?

Questions in this quiz
  1. What does it mean that a Rust `Future` is "lazy"?
  2. What is a `Stream` in the context of Tokio/async Rust?
  3. What does `tokio::spawn` do?
  4. What does `tokio::sync::Mutex` offer that `std::sync::Mutex` does not, for use inside async code?
  5. What does `tokio::time::timeout` do?
  6. What is the purpose of `#[tokio::main]`?
  7. What is `tokio::task::spawn_blocking` for?
  8. What is Tokio?
  9. What is a key difference between `tokio::spawn` and a native OS thread?
  10. What happens if a long-running, CPU-bound computation is run directly inside an `async fn` without special handling?
  11. What is the difference between `tokio::sync::mpsc` and `tokio::sync::broadcast` channels?
  12. What is an `mpsc` channel in Tokio used for?
Gaps to close?
Read the curated Tokio notes — core concepts, patterns, interview prep.
Tokio notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web