Async from scratch 3: Pinned against the wall
Published on: 2025-06-25 14:02:00
So, we've covered polling. We've tackled sleeping (and waking). Going back to the definition, that leaves us with one core concept left to conquer: pinning!
But before we get there, there was that one tiny other aside I'd like to go over, just so we can actually use the real trait this time. It'll be quick, I promise. And then we'll be back to what you came here for.
Intermission: Letting our types associate
Let's ignore poll() completely for a second, and focus on another sneaky change I pulled between Future and SimpleFuture :
trait Future { type Output ; } trait SimpleFuture