Rewrote service trait join() method to allow thread join handles to return values other than () (#1213)

This commit is contained in:
carllin
2018-09-13 14:00:17 -07:00
committed by GitHub
parent 1d7e87d430
commit 8706774ea7
19 changed files with 138 additions and 111 deletions

View File

@@ -68,9 +68,7 @@ impl JsonRpcService {
}
impl Service for JsonRpcService {
fn thread_hdls(self) -> Vec<JoinHandle<()>> {
vec![self.thread_hdl]
}
type JoinReturnType = ();
fn join(self) -> thread::Result<()> {
self.thread_hdl.join()