Explorar o código

net: expand the descriptive comment in subscribe_stop signature

ghassmo %!s(int64=4) %!d(string=hai) anos
pai
achega
64e32310f8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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={}]",