Skip to content

Conversation

nikomatsakis
Copy link
Contributor

@rylev
Copy link
Member

rylev commented Apr 23, 2021

I’m all for more stories but is this different enough from https://github.com/rust-lang/wg-async-foundations/blob/master/src/vision/status_quo/alan_builds_a_cache.md? It seems to cover the same exact issue without it being specifically about select!.

In fact the blog post linked here was an inspiration for the “Alan builds a cache” story.

@nikomatsakis
Copy link
Contributor Author

So @rylev I pushed some comments about what makes this story different. I do think that ultimately this story and the others about cancellation would be merged into one tighter narrative, but I'd rather wait to do that until we have assembled all the pieces.

@nikomatsakis
Copy link
Contributor Author

nikomatsakis commented Apr 24, 2021

It seems to cover the same exact issue without it being specifically about select!.

As I tried to explain in the text, the whole motivation for writing this story to me was to specifically about select!, and the fact that cancellation of futures requires fine-grained recovery even for normal, expected events. It's not just about "the client dropped the connection, so tear down everything related to it", which is how I thought of it to start.


They would likely have a hard time diagnosing the problem. It really depends on how well they have come to understand the semantics of cancellation. This is fairly independent from programming language background; knowing non-async Rust doesn't help in particular, as this concept is specific to async code.

### What is different between this story and other cancellation stories?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is fantastic. It's very subtle, but it has big implications. ♥

@nikomatsakis nikomatsakis added the status-quo-story-ideas "Status quo" user story ideas label Apr 28, 2021
@nikomatsakis nikomatsakis merged commit 926057d into rust-lang:master Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status-quo-story-ideas "Status quo" user story ideas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants