mastodon.sdf.org is part of the decentralized social network powered by Mastodon.
"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko

Administered by:

Server stats:

2.5K
active users

Learn more

argv minus one

Although async can be confusing, I must say it has some nice features that I miss when using other languages.

For example, if I want to do a compound async operation (like fetching a web page over HTTP) but cancel it if it's taking too long, in Rust this is trivial—just race it against a timer, and drop it if the timer wins. When a future is dropped, any async operations it owns are cancelled.

In the other languages I've seen, this is difficult if not impossible.

Dec 17, 2024, 00:21 · · · Web · 3 · 5

@argv_minus_one@mastodon.sdf.org go does this well, too. I feel so spoiled by modern languages ​:neocat_comfy_happy: