mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
process: Bump tokio-signal version to 0.2
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ fn simple() {
|
||||
let mut lp = Core::new().unwrap();
|
||||
let mut cmd = support::cmd("exit");
|
||||
cmd.arg("2");
|
||||
let mut child = cmd.spawn_async(&lp.handle()).unwrap();
|
||||
let mut child = cmd.spawn_async_with_handle(lp.handle().new_tokio_handle()).unwrap();
|
||||
let id = child.id();
|
||||
assert!(id > 0);
|
||||
let status = lp.run(&mut child).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user