Rewrote service trait join() method to allow thread join handles to return values other than () (#1213)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user