1
Fork 0

Stabilize async closures

This commit is contained in:
Michael Goulet 2024-11-06 17:53:59 +00:00
parent d4025ee454
commit c605c84be8
184 changed files with 311 additions and 553 deletions

View file

@ -5,8 +5,6 @@
Erroneous code example:
```edition2018
#![feature(async_closure)]
fn main() {
let add_one = async |num: u8| {
num + 1
@ -18,8 +16,6 @@ fn main() {
version, you can use successfully by using move:
```edition2018
#![feature(async_closure)]
fn main() {
let add_one = async move |num: u8| { // ok!
num + 1