diff --git a/src/tools/futures.rs b/src/tools/futures.rs index 2b31164c..8cea6f95 100644 --- a/src/tools/futures.rs +++ b/src/tools/futures.rs @@ -49,6 +49,8 @@ pub struct Cancellable { /// Reference to a cancellable future. Multiple instances may exist simultaneously. /// /// This allows cancelling another future. If the future already finished, nothing happens. +/// +/// This can be cloned to be used in multiple places. #[derive(Clone)] pub struct Canceller(Arc>>>); @@ -76,7 +78,7 @@ impl Cancellable { Ok((this, canceller)) } - /// Create another `Canceller` for his future.. + /// Create another `Canceller` for this future. pub fn canceller(&self) -> Canceller { Canceller(self.guard.clone()) }