Bläddra i källkod

net: expand the descriptive comment in subscribe_stop signature

ghassmo 4 år sedan
förälder
incheckning
64e32310f8
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/net/channel.rs

+ 1 - 0
src/net/channel.rs

@@ -127,6 +127,7 @@ impl Channel {
     }
 
     /// Creates a subscription to a stopped signal.
+    /// If the channel is stopped then this will return a ChannelStopped error.
     pub async fn subscribe_stop(&self) -> Result<Subscription<Error>> {
         debug!(target: "net",
          "Channel::subscribe_stop() [START, address={}]",