forked from extern/nushell
Poll externals quicker. (#1231)
This commit is contained in:
parent
29431e73c2
commit
ba7a1752db
@ -349,7 +349,7 @@ async fn spawn(
|
|||||||
|
|
||||||
loop {
|
loop {
|
||||||
match popen.poll() {
|
match popen.poll() {
|
||||||
None => std::thread::sleep(std::time::Duration::new(0, 100_000_000)),
|
None => futures_timer::Delay::new(std::time::Duration::from_millis(10)).await,
|
||||||
Some(status) => {
|
Some(status) => {
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
yield Ok(Value {
|
yield Ok(Value {
|
||||||
|
Loading…
Reference in New Issue
Block a user