2 Matching Annotations
  1. Last 7 days
    1. And for task-based concurrency you can adopt the smol model of task spawning to benefit from most of the benefits of structured concurrency today. And eventually the hope is we can add some form of async Drop to the language to close out the remaining holes.

      Yeah, this is a bit unfortunate. The TL;DR seems to be is that structured currency isn't fully possible in rust. smol seems to be the closest option, but it while it guarantees cancellation of child tasks eventually rust doesn't provided async destructors so there's no way to wait for the cancellations to complete before cleaning up the future.