Async cancellation in Rust

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • Welcome to Mathias' Rust Corner! In this video, we dive into cancel safety in Rust futures-why it's important and how to avoid unexpected data loss when working with async Rust.
    📌 What You'll Learn:
    ✅ What is a Future in Rust?
    ✅ How cancellation works and when it becomes unsafe
    ✅ Real-world examples of cancel-unsafe and cancel-safe futures
    ✅ How async blocks interact with cancellation
    ✅ The hidden risks of using the select! macro
    Using intuitive metaphors (like Sisyphus and his boulder) and practical code examples, we’ll help you understand the impact of future cancellation and how to write safer, more reliable async code.
    💡 Want to improve your Rust async skills? Make sure to like and subscribe for more deep dives into Rust programming!
    📜 Code & Resources:
    Some exercises: github.com/Jed...
    google.github....

Комментарии •