Poll externals quicker. (#1231)

This commit is contained in:
Andrés N. Robalino 2020-01-16 06:27:12 -05:00 committed by GitHub
parent 29431e73c2
commit ba7a1752db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,7 @@ async fn spawn(
loop {
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) => {
if !status.success() {
yield Ok(Value {