WUFFS
WUFFS
Posted Aug 16, 2024 21:28 UTC (Fri) by mathstuf (subscriber, #69389)In reply to: WUFFS by khim
Parent article: Standards for use of unsafe Rust in the kernel
> then it can be fixed with addition of just one keyword (it may even not be a keyword since it always comes after async):
>
> tokio::spawn(async clone {
> do_something(cx.io, cx.disk, cx.health_check)
> })
>
> tokio::spawn(async clone {
> do_something(cx.io, cx.disk, cx.health_check)
> })
Except I want it for plain closures too, not just `async` blocks.
