-
Notifications
You must be signed in to change notification settings - Fork 3
Use AsyncFnOnce
instead of FnOnce -> RetFut
#5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Oooh I hadn't followed the introduction of the However, I must say that we'll probably still not be able to have it in this specific part of the code. The reason is that here, the And I don't think I could write this safely without the This being said, if you have any ideas for how to handle that issue, I'd love to hear them! The |
I've opened a PR as a POC for supporting async closure
I haven't dig much in However in the case of IndexedDb I guess we have guarantees on this (typically the |
Hmm… I'd need to think quite a lot more about it before I consider adding a new |
Async closure has been stabilized in Rust 1.85 this brings a much better ergonomic when passing reference to a closure.
For instance currently this wrapper is not possible (but would be fine if
TransactionBuilder::run
would accept an async closure):Rust compilation error:
The text was updated successfully, but these errors were encountered: