• Green vs native threads
  • threadpool
  • Rust’s approach (native threads)
    • tokio (green threads)
  • Go’s approach (green threads)

Green vs Native threads

Rust approach

Async/Await:

  • how to use?
    • mark a function as async fn ..
    • get the result of an async function as let res = some_async_fn().await?. Note that async function always returns a Result, so you’ll have to either explicitly transform that result or use ? to stack the error/value.
  • what even is an async function?

Tokio approach

References