Просмотр исходного кода

net: expand the descriptive comment in subscribe_stop signature

ghassmo 4 лет назад
Родитель
Сommit
64e32310f8
1 измененных файлов с 1 добавлено и 0 удалено
  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.
     /// 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>> {
     pub async fn subscribe_stop(&self) -> Result<Subscription<Error>> {
         debug!(target: "net",
         debug!(target: "net",
          "Channel::subscribe_stop() [START, address={}]",
          "Channel::subscribe_stop() [START, address={}]",