mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-29 07:40:14 +01:00
future::join as freestanding function
This commit is contained in:
@@ -129,8 +129,11 @@ mod tests {
|
||||
Ok::<_, io::Error>((response1, response2))
|
||||
};
|
||||
|
||||
let (response1, response2) =
|
||||
run_future(server.join(responses.unwrap_or_else(|e| panic!(e)))).1;
|
||||
let (response1, response2) = run_future(future::join(
|
||||
server,
|
||||
responses.unwrap_or_else(|e| panic!(e)),
|
||||
))
|
||||
.1;
|
||||
|
||||
trace!("response1: {:?}, response2: {:?}", response1, response2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user