mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
net: clarify socket gets closed on drop (#7526)
This commit is contained in:
@@ -19,6 +19,8 @@ cfg_net! {
|
||||
///
|
||||
/// A `TcpListener` can be turned into a `Stream` with [`TcpListenerStream`].
|
||||
///
|
||||
/// The socket will be closed when the value is dropped.
|
||||
///
|
||||
/// [`TcpListenerStream`]: https://docs.rs/tokio-stream/0.1/tokio_stream/wrappers/struct.TcpListenerStream.html
|
||||
///
|
||||
/// # Errors
|
||||
|
||||
Reference in New Issue
Block a user