Hayden Stainsby · @hds
126 followers · 511 posts · Server hachyderm.io

I finished the 4th and final part to my "how I understood async/await in Rust" series of blog posts: hegdenu.net/posts/understandin

In this one we look at doing something that can't be done without writing a "manual" future implementation. Namely writing an async channel.

#rust #rustlang #asyncrust

Last updated 2 years ago

Hayden Stainsby · @hds
121 followers · 481 posts · Server hachyderm.io

Yesterday I published part 3 of my series on "how I finally understood async/await in ".

The topic is "why shouldn’t I hold a mutex guard across an await point?".

hegdenu.net/posts/understandin

#rust #rustlang #asyncrust

Last updated 2 years ago

Hayden Stainsby · @hds
114 followers · 437 posts · Server hachyderm.io

There is another great post related to understanding async/await in in @thisweekinrust 503.

How to think about `async`/`await` in Rust by @cliffle:
cliffle.com/blog/async-inversi

I understand that it's not new so much as newly extraced from existing documentation. In any event, it's a great read if you're trying to wrap your head around async/await.

#rust #rustlang #asyncrust

Last updated 2 years ago

Hayden Stainsby · @hds
113 followers · 435 posts · Server hachyderm.io

This post on Pin in is fantastic!

ohadravid.github.io/posts/2023 by Ohad Ravid (@ohadrv on the bird site, doesn’t appear to be on mastodon)

If you’ve ever struggled to understand what Pin is trying to do and how it relates to all that Unpin and !Unpin stuff, have a read!

Found via @thisweekinrust 503.

#async #rust #rustlang #asyncrust

Last updated 2 years ago

Hayden Stainsby · @hds
110 followers · 433 posts · Server hachyderm.io

I recently heard about someone using from a “custom runtime” (not using the `tokio_unstable` flag). I’m not sure if they meant custom or a non-tokio custom runtime.

Honestly, either of those happening is pretty cool. I’d love to hear from anyone else doing anything similar too!

#tokioconsole #tokio #rust #rustlang #asyncrust

Last updated 2 years ago

Hayden Stainsby · @hds
87 followers · 421 posts · Server hachyderm.io

I've finished part 2 of my series on "how I finally understood async/await in ".

The topic is "how does a pending future get woken?".

hegdenu.net/posts/understandin

#rust #rustlang #asyncrust

Last updated 2 years ago

yottalogical · @yottalogical
2 followers · 33 posts · Server hachyderm.io

@KevinWho @soulsource The Rust Foundation does maintain a library with the ability to execute asynchronous functions (crates.io/crates/futures), but they made the intentional decision to not include it in the standard library.

(I'd still recommend (crates.io/crates/tokio) as the go-to runtime, though!)

#tokio #asyncrust

Last updated 3 years ago