tokio-rs / website

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

Update docs on terminating groups of tasks #731

Closed barafael closed 7 months ago

barafael commented 7 months ago

As discussed :) the docs on the topic pages were not reflecting the new task tracker from tokio_util.

The previous approach was moving mpsc::Senders to tasks and dropping them when finished, thereby notifying the main task which awaits on the mpsc::Receiver.

This PR changes the example to use a Task Tracker instead.