Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Oct 19, 2023
1 parent 286d339 commit 2248ee8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runner.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! The SubsystemRunner is a little tricky, so here some explanation.
//!
//! A two-layer `tokio::spawn` is required to make this work reliably; the inner `spawn` is the actual subsystem,
//! and the outer `spawn` carries out the duty of propagating the `StopReason`.
//! and the outer `spawn` carries out the duty of propagating the `StopReason` and cleaning up.
//!
//! Further, everything in here reacts properly to being dropped, including the `AliveGuard` (propagating `StopReason::Cancel` in that case)
//! and runner itself, who cancels the subsystem on drop.
//! Further, everything in here reacts properly to being dropped, including
//! the runner itself, who cancels the subsystem on drop.
use std::{future::Future, sync::Arc};

Expand Down

0 comments on commit 2248ee8

Please sign in to comment.