RUST 101 – 36: What Ashnc and Await actually did


July 25, 2024 [Programming, Programming Languages, Rust, Tech, Videos]

Trying to explain as slowly as possible what really happens when the compiler finds the Ashnc function that contains waiting: it writes the poll method for you to make something that implements the future. The poll method produced by the poll, the future you ask for to wait, sequentially. The interesting bit is that the things that are produced implement the future and have a poll method need to have the things it meant, which leads to some of the most confusing error messages that you see when writing this kind of code.

Series: Basics of language, more syntax, nature and generation, building applications, concurrent and parallelism, objects of trait, ASYNCUnsafe, FFI

This section (Ashnc): 34: What is ASYNC?, 35: Futures, 36: ASYNC/AWAIT37: Runtimes, 38: E1A Exercise, 39: E1B Exercise, 40: E2A Exercise, 41: E2B Exercise

Link:

The course material for this series was developed by Tweede Golf. You can find more information at github.com/tweedegolf/101-rs and you can sponsor work at github.com/sponsors/tweedegolf. They were released under the Creative Commons Attribution License with 4.0 International License.

This series of videos is Copyright 2024 Andy Balaam and Golf Tweede contributors and released under the Creative Commons Attribution License -International License 4.0.



Game Online

Gaming Hub