Feature Request: Support for async closures
Open
@Huliiiiii is already working on this.
Since Dec 22, 2025.
help-wanted
S-blocked
- Dominant language
- Rust
- Stars
- 9.9k
- Forks
- 734
- Avg merge
- 6h 36m
- Merged PRs (30d)
- 8
Description
Motivation
Since AsyncFn and therefore async closures have been stabilised in rust version 1.85.0 a few months back, are there any plans to support this for example in transactions?
Proposed Solutions
For example the arguments to the transaction functions can be changed to instead receive impl AsyncFnOnce() -> Result<T, E> or if this is to late for version 2.0.0, another pair of transaction functions can be added which receive the async closure.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.