Change a return value of reactor::poll to io::Result. (#40)

* Change a return value of reactor::poll to io::Result.

* Revert "Change a return value of reactor::poll to io::Result."

This reverts commit 281d8c32d4.

* Return a result from reactor::poll.

* Drop a reactor if any error occurs. Fix warnings in tests.

* Update a documentation for reactor::turn.

* Unwrap the last turn() call in tests.
This commit is contained in:
dethoter
2017-12-19 16:15:30 -06:00
committed by Alex Crichton
parent 571e322755
commit 9303076a6b
3 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -49,6 +49,6 @@ impl Drop for HelperThread {
fn run(mut reactor: Reactor, done: Arc<AtomicBool>) {
while !done.load(Ordering::SeqCst) {
reactor.turn(None);
reactor.turn(None).unwrap();
}
}