Skip to content

Commit

Permalink
Document a possible way in which connect_timout may change in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslee committed May 13, 2014
1 parent 611c2ae commit 8252353
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstd/io/net/tcp.rs
Expand Up @@ -95,6 +95,9 @@ impl TcpStream {
/// This is the same as the `connect` method, except that if the timeout
/// specified (in milliseconds) elapses before a connection is made an error
/// will be returned. The error's kind will be `TimedOut`.
///
/// Note that the `addr` argument may one day be split into a separate host
/// and port, similar to the API seen in `connect`.
#[experimental = "the timeout argument may eventually change types"]
pub fn connect_timeout(addr: SocketAddr,
timeout_ms: u64) -> IoResult<TcpStream> {
Expand Down

0 comments on commit 8252353

Please sign in to comment.