News for hackers. Stuff that matters.
Re:A Guide to Closures in Rust by masklinn on Wednesday May 24, 2023 @05:53AM (#36055840)
The lack of asynchronous closures does make it awkward, as you often need to put an `async move` block inside the closure for things to work correctly, which means the closure becomes an FnOnce and you have to work around that using clones.

It’s one of the worst corners of the ecosystem currently, and I’d very much recommend avoiding it.

There are no comments on this comment yet.