summary refs log tree commit diff
path: root/src/libstd/rt/io/option.rs
AgeCommit message (Collapse)AuthorLines
2013-09-06Make I/O tests use run_in_mt_newsched_task to get more multi-threaded test ↵Eric Reed-3/+3
coverage
2013-06-23Split out starting a listener from accepting incoming connections.Eric Reed-4/+16
The Listener trait takes two type parameters, the type of connection and the type of Acceptor, and specifies only one method, listen, which consumes the listener and produces an Acceptor. The Acceptor trait takes one type parameter, the type of connection, and defines two methods. The accept() method waits for an incoming connection attempt and returns the result. The incoming() method creates an iterator over incoming connections and is a default method. Example: let listener = TcpListener.bind(addr); // Bind to a socket let acceptor = listener.listen(); // Start the listener for stream in acceptor.incoming() { // Process incoming connections forever (or until you break out of the loop) }
2013-08-01make `in` and `foreach` get treated as keywordsDaniel Micay-4/+4
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+153
This only changes the directory names; it does not change the "real" metadata names.