tokio-rs / website

Website for the Tokio project
https://tokio.rs
MIT License
228 stars 329 forks source link

BoxFuture #673

Closed jimmykiang closed 1 year ago

jimmykiang commented 1 year ago

Make the syntax of the future field contained the Task a little less verbose by replacing:

Mutex<Pin<Box<dyn Future + Send>>>

with:

Mutex<BoxFuture<'static, ()>>

The functionality remains intact.