Document Handle::default() behavior (#359)

This commit is contained in:
main()
2018-05-14 11:11:28 -07:00
committed by Carl Lerche
parent 1f5bb121e2
commit 35f3351c97
4 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -69,8 +69,7 @@ impl TcpStream {
///
/// This function will convert a TCP stream created by the standard library
/// to a TCP stream ready to be used with the provided event loop handle.
/// The stream returned is associated with the event loop and ready to
/// perform I/O.
/// Use `Handle::default()` to lazily bind to an event loop, just like `connect` does.
pub fn from_std(stream: net::TcpStream, handle: &Handle)
-> io::Result<TcpStream>
{