SeaQL / SeaQL/sea-orm

Feature Request: Support for async closures

Open
#2,749 9 comments 5 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.