-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededroadmap-topicTop-line goal for the roadmapTop-line goal for the roadmapstatus-quo-story-ideas"Status quo" user story ideas"Status quo" user story ideas
Milestone
Description
Brief summary
Not having async closures can mean needing to resort to macros to create certain (fairly common) types of combinators (ones where a closure that returns a future runs into lifetime issues).
We experienced this in pantsbuild/pants#11548, and I ended up writing a macro to put what would have been a parameter to a closure-returning-a-future or async-closure directly on the stack instead: pantsbuild/pants#11759
Optional details
- (Optional) Which character(s) would be the best fit and why?
- (Optional) What are the key points or morals to emphasize?
- Working reference-parameter-taking-closures-returning-futures would be great to have, but would require fairly advanced lifetimes (GATs?) to use even once they are possible (would likely be Barbara's choice). On the other hand, async-closures are less general, but likely to be easier to use (would likely be Alan's choice).
jbr
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededroadmap-topicTop-line goal for the roadmapTop-line goal for the roadmapstatus-quo-story-ideas"Status quo" user story ideas"Status quo" user story ideas
Type
Projects
Status
In Progress